답안 #797066

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
797066 2023-07-29T05:44:51 Z Trisanu_Das Košnja (COCI17_kosnja) PyPy 3
50 / 50
149 ms 27564 KB
n=int(input())
L=[]
for i in range(n):
    x,y=map(int,input().split())
    L+=[x<y and 2*(x-1) or x>=y and 2*(y-1) or 0]
for i in range(n):
    print(L[i])
# 결과 실행 시간 메모리 Grader output
1 Correct 31 ms 18168 KB Output is correct
2 Correct 30 ms 18196 KB Output is correct
3 Correct 30 ms 18144 KB Output is correct
4 Correct 29 ms 18196 KB Output is correct
5 Correct 30 ms 18232 KB Output is correct
6 Correct 122 ms 27564 KB Output is correct
7 Correct 149 ms 27148 KB Output is correct
8 Correct 121 ms 27312 KB Output is correct
9 Correct 141 ms 27512 KB Output is correct
10 Correct 124 ms 27548 KB Output is correct