Skip to content

Commit 10e3199

Browse files
committed
atcoder/abc144A
1 parent 5a7f63d commit 10e3199

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

atcoder/abc144/A/main.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 A, B;
12+
cin >> A >> B;
13+
14+
if (A >= 10 || B >= 10) {
15+
cout << -1 << endl;
16+
} else {
17+
cout << (A * B) << endl;
18+
}
19+
20+
return 0;
21+
}

0 commit comments

Comments
 (0)