add: swea/12221.py
This commit is contained in:
12
swea/12221.py
Normal file
12
swea/12221.py
Normal 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)
|
||||||
Reference in New Issue
Block a user