Skip to content

Commit c8eb84a

Browse files
committed
atcoder/abc144B
1 parent 10e3199 commit c8eb84a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

atcoder/abc144/B/main.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include <bits/stdc++.h>
2+
3+
using namespace std;
4+
using ll = int64_t;
5+
using ff = long double;
6+
7+
int main() {
8+
ios_base::sync_with_stdio(false);
9+
cin.tie(0); cout.tie(0);
10+
11+
int N;
12+
cin >> N;
13+
bool found = false;
14+
for (int x = 1; x <= 9; ++x) {
15+
for (int y = 1; y <= 9; ++y) {
16+
if (x * y == N) {
17+
found = true;
18+
break;
19+
}
20+
}
21+
}
22+
cout << (found ? "Yes" : "No") << endl;
23+
24+
return 0;
25+
}

0 commit comments

Comments
 (0)