Code
for _ in range(int(input())):
x, y = map(int, input().split())
if 1 not in {x, y}:
print(1)
else:
print(-1)
Information
- Submit By
- Type
- Submission
- Problem
- P1235 A. Valid Integer
- Contest
- Happy New Year 2026
- Language
- PyPy 3 (Python 3.9.18 PyPy 7.3.15)
- Submit At
- 2026-01-06 14:34:25
- Judged At
- 2026-01-06 14:34:26
- Judged By
- Score
- 100
- Total Time
- 56ms
- Peak Memory
- 19.293 MiB