龙岩网站优化建筑行业征信查询平台官网

#include <iostream>
using namespace std;
int main()
{int res = 0;for(int i = 1; i < 2021; i ++){int b = i;while(b){if (b % 10 == 2) res ++;b /= 10;}}cout << res; return 0;
}

#include <iostream>
using namespace std;
int main()
{int res = 0;for(int i = 1; i < 2021; i ++){int b = i;while(b){if (b % 10 == 2) res ++;b /= 10;}}cout << res; return 0;
}