General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
183323790 Practice:
Haksell
1715A - 37 PyPy 3-64 Accepted 109 ms 3628 KB 2022-11-30 10:34:22 2022-11-30 10:34:22
→ Source
for _ in range(int(input())):
    n, m = sorted(map(int, input().split()))
    print(0 if m == 1 else m + n + n - 2)
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details