← Back to List

5691번: 평균 중앙값 문제 ↗

Solutions

Python 3
103 B | 103 chars
while True:
    a,b=list(map(int,input().split()))
    if a==0 and b==0:
        break
    print(2*a-b)