General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
214256955 Practice:
taras_2_2
1715A - 37 PyPy 3-64 Accepted 109 ms 3916 KB 2023-07-17 22:41:23 2023-07-17 22:41:24
→ Source
for _ in range(int(input())):
    n,m=[int(e) for e in input().split()]
    print(n-1+m-1+min(n,m) if n+m!=2 else 0)
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details