4.3w+
社区成员
#include <iostream>
using namespace std;
bool check(int x) {
while (x) {
int t = x % 10;
if (t % 2 == 0) return false;
x /= 10;
}
return true;
}
int main()
{
int t = 1;
while (true) {
if (check(2019 * t)) {
cout << 2019 * t;
break;
}
++t;
}
return 0;
}
今天去做兼职,很晚很晚才回来,下次会补回!