Files
python/RuMenJingDian/LiTi/P_2_2.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

21 lines
455 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
//ios::sync_with_stdio(false); //读入输出优化的强迫症
int a, b, c;
cin >> a >> b >> c;
bool found = false;
for (int i = 10; i < 100; i++) {
if (i % 3 == a && i % 5 == b && i % 7 == c) {
found = true;
cout << i << endl;
}
}
if (!found) {
cout << "No answer" << endl;
}
return 0;
}