50,853
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
#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;
}
今天去做兼职,很晚很晚才回来,下次会补回!