728x90
반응형

단순 수학 문제이다. (R1 + R2) / 2 = S -> R2 = S*2 - R1

R1, S = map(int, input().split())
R2 = S*2 - R1
print(R2)
728x90
반응형

+ Recent posts