본문 바로가기
python-algorithm

codeforces 1154A - Restoring Three Numbers

by 무적김두칠 2022. 4. 29.

1
2
3
4
5
6
def sol(input_list):
    a,b,c=input_list[3]-input_list[0],input_list[3]-input_list[1],input_list[3]-input_list[2]
    print(a,b,c)
 
num_list=sorted(map(int, input().split()))
sol(num_list)
cs
반응형

댓글