General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
180422512 Practice:
Alfa
1715A - 37 PyPy 3-64 Accepted 124 ms 3360 KB 2022-11-11 08:44:07 2022-11-11 08:44:07
→ Source
t=int(input())
while t:
    t-=1
    n,m=map(int,input().split())
    print(0 if n==1 and m==1 else min(m,n)+n+m-2)
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details