You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
435 B

#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;
}