From 836ba02cf792cb9d83836852f47b2294aace6d4d Mon Sep 17 00:00:00 2001 From: Gyubin Han <89185979+Gyubin-Han@users.noreply.github.com> Date: Sun, 5 May 2024 00:37:02 +0900 Subject: [PATCH] add: swea/12221.py --- swea/12221.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 swea/12221.py diff --git a/swea/12221.py b/swea/12221.py new file mode 100644 index 0000000..e08f55b --- /dev/null +++ b/swea/12221.py @@ -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)