/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 13ms 2.887 MiB
#2 Accepted 41ms 2.895 MiB

Code

def findK(x, y):
    m = min(x, y)
    if m == 1:
        return -1
    return m - 1

t = int(input())
for _ in range(t):
    x, y = [int(c) for c in input().split(' ')]
    print(findK(x, y))

Information

Submit By
Type
Submission
Problem
P1235 A. Valid Integer
Contest
Happy New Year 2026
Language
Python 3 (Python 3.12.3)
Submit At
2026-01-06 14:59:55
Judged At
2026-01-06 14:59:56
Judged By
Score
100
Total Time
41ms
Peak Memory
2.895 MiB