/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 34ms 17.316 MiB
#2 Accepted 56ms 19.293 MiB

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