-Code
for _ in range(int(input())):
w, k = map(int, input().split())
if w == k == 1:
print(0)
continue
print(w * k // 2)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 25703번 포인터 공부 (0) | 2022.10.03 |
---|---|
[백준/파이썬] 11257번 IT Passport Examination (0) | 2022.10.02 |
[백준/파이썬] 23235번 The Fastest Sorting Algorithm In The World (0) | 2022.09.30 |
[백준/파이썬] 4696번 St. Ives (0) | 2022.09.29 |
[백준/파이썬] 4589번 Gnome Sequencing (0) | 2022.09.28 |