for tc in range(int(input())):
a, b = map(int, input().split())
k = min(a, b)
print(2*k - 2)
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
10 ms |
3164 KB |
Output is correct |
2 |
Correct |
10 ms |
2948 KB |
Output is correct |
3 |
Correct |
10 ms |
2908 KB |
Output is correct |
4 |
Correct |
10 ms |
2904 KB |
Output is correct |
5 |
Correct |
10 ms |
2908 KB |
Output is correct |
6 |
Correct |
120 ms |
3344 KB |
Output is correct |
7 |
Correct |
183 ms |
3636 KB |
Output is correct |
8 |
Correct |
119 ms |
3484 KB |
Output is correct |
9 |
Correct |
179 ms |
3668 KB |
Output is correct |
10 |
Correct |
118 ms |
3360 KB |
Output is correct |