반응형
Notice
Recent Posts
Recent Comments
Link
목록10162 (1)
안경잡이 구루루
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/D9Fzp/btsuegzBfRw/eoISi6cK9a5vx7KuQ11Kzk/img.png)
https://www.acmicpc.net/problem/10162 10162번: 전자레인지 3개의 시간조절용 버튼 A B C가 달린 전자레인지가 있다. 각 버튼마다 일정한 시간이 지정되어 있어 해당 버튼을 한번 누를 때마다 그 시간이 동작시간에 더해진다. 버튼 A, B, C에 지정된 시간은 www.acmicpc.net 나: T = int(input()) buttons = [300,60,10] result = [] count = 0 for button in buttons: count = T//button result.append(count) T = T%button if T == 0: print(*result) else: print(-1) 완성된 코드는 위와 같다. (1) T = int(input()) b..
파이썬(Python)/문제풀이(백준,BaekJoon)
2023. 9. 16. 20:46