python-algorithm
백준 31606 果物 (Fruit)
무적김두칠
2024. 4. 15. 08:22
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 |
반응형