add: swea/12221.py

This commit is contained in:
Gyubin Han
2024-05-05 00:37:02 +09:00
parent 1c4bca2b56
commit 836ba02cf7

12
swea/12221.py Normal file
View File

@@ -0,0 +1,12 @@
t=int(input())
for tc in range(1,t+1):
a,b=map(int,input().split())
result=0
if a>9 or b>9:
result=-1
else:
result=a*b
print("#"+str(tc),result)