'commit'
This commit is contained in:
21
RuMenJingDian/LiTi/P_2_2.cpp
Normal file
21
RuMenJingDian/LiTi/P_2_2.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user