# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
797066 | Trisanu_Das | Košnja (COCI17_kosnja) | Pypy 3 | 149 ms | 27564 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |