3046 : R2#
๋ธ๋ก ์ฆ 4
input#
S(R1+R2/2), R1 ๊ฐ ์ฃผ์ด์ง ๋, R2๋ฅผ ๊ตฌํด๋ผ
์ฒซ์งธ ์ค์ ๋ ์ ์ R1๊ณผ S๊ฐ ์ฃผ์ด์ง๋ค. ์ฒซ์งธ ์ค์ ๋ ์ ์ R1๊ณผ S๊ฐ ์ฃผ์ด์ง๋ค.
# input setting
problem_num = 3046
import os, sys
path = os.getcwd() + f'\\txt\\{problem_num}' + '.txt'
sys.stdin = open(path,'r')
input = sys.stdin.readlines()[0]
print(f'input : {input}, input type : {type(input)}')
# solve problem
r1,s = map(int,input.split())
r2 = int(2*s - r1)
print(r2)
input : 11 15, input type : <class 'str'>
19
solving issue#
๊ทธ๋ฅ ๋ฐฉ์ ์์ด๋ค.