제출 #797066

#제출 시각아이디문제언어결과실행 시간메모리
797066Trisanu_DasKošnja (COCI17_kosnja)Pypy 3
50 / 50
149 ms27564 KiB
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])
#Verdict Execution timeMemoryGrader output
Fetching results...