15
16
24万
论坛元老
使用道具 举报
660
846
243万
管理员
#include <bits/stdc++.h> using namespace std; int main() { int n,x,s=0; cin>>n>>x; while(1) { if(n%10==x) s++; n=n/10; if(n==0) break; } cout<<s; return 0; }
18
22
23万
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|DiscuzX
GMT+8, 2025-5-29 21:57 , Processed in 0.064354 second(s), 38 queries .
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.. 技术支持 by 巅峰设计