haju__log
[python][SWEA][D3] 12221. 구구단2 본문
SW Expert Academy
SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!
swexpertacademy.com
T=int(input())
for test_case in range(1,T+1):
a,b=map(int,input().split())
if a<=9 and b<=9:
print("#%d %d" %(test_case,a*b))
else:
print("#%d %d" %(test_case,-1))
'SWEA' 카테고리의 다른 글
[python][SWEA][D3] 13229. 일요일 (0) | 2023.05.08 |
---|---|
[python][SWEA][D3] 1213. [S/W 문제해결 기본] 3일차 - String (0) | 2023.05.08 |
[python][SWEA][D3] 1217. [S/W 문제해결 기본] 4일차 - 거듭 제곱 (0) | 2023.05.07 |
[python][SWEA][D3] 6730. 장애물 경주 난이도 (파이썬 제출없음) (0) | 2023.05.07 |
[python][SWEA][D3] 1289. 원재의 메모리 복구하기 (0) | 2023.05.05 |