General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
186073523 Practice:
devsharma03
1715A - 37 Python 3 Accepted 61 ms 0 KB 2022-12-20 10:29:03 2022-12-20 10:29:03
→ Source
t = int(input())
for i in range(t):
    n, m = map(int, input().split())
    print(2*(n+m-2)-max([m-2, n-2, 0]))
	
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details