3046 : R2

Contents

3046 : R2#

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#

  1. ๊ทธ๋ƒฅ ๋ฐฉ์ •์‹์ด๋‹ค.