竞赛
考级
#include <iostream> using namespace std; int main() { int n, m, cnt = 0; cin >> n >> m; while(n > 0){ if(n % 10 == m) cnt++; n /= 10; } cout << cnt; return 0; }
提交答案之后,这里将显示提交结果~