# |
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 |
|
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)
Click to see test details