본문 바로가기
python-algorithm

백준 31606 果物 (Fruit)

by 무적김두칠 2024. 4. 15.

https://www.acmicpc.net/problem/31606

 

31606번: 果物 (Fruit)

リンゴが X 個,ミカンが Y 個,バナナが 3 個ある.リンゴとミカンとバナナが合わせて何個あるかを求めよ.

www.acmicpc.net

 

1
2
3
4
5
6
7
8
9
10
11
def sol(x, y):
    return x + y + 3
 
 
if __name__ == '__main__':
    x = int(input())
    y = int(input())
 
 
    print(sol(x, y))
 
cs
반응형

'python-algorithm' 카테고리의 다른 글

백준 31403  (0) 2024.04.16
백준 30402 감마선을 맞은 컴퓨터  (0) 2024.04.16
백준 31610 飴の袋詰め (Drops Packing)  (0) 2024.04.15
백준 31611 火曜日 (Tuesday)  (0) 2024.04.15
백준 31614 分 (Minutes)  (0) 2024.04.15

댓글