Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- setTimeout()
- js
- json
- https://youtube.com/playlist?list=PLuHgQVnccGMA5836CvWfieEQy0T0ov6Jh&si=FTaYv8m21EhO-A2K
- 비동기
- 참고블로그
- 동기
- Project
- slow and steady
- async
- eport
- webpack
- db
- Import
- callback
- database
- prj
- JS #프로젝트
- https://m.blog.naver.com/tt2t2am1118/221010125300
- 혼프
- Porject
- object
- execCommand
- await
- sql
- promise
- mysql
- ajax
- addEventListener
- 게임
Archives
- Today
- Total
C-log
💡2884번 본문
728x90
이 문제는 다시 생각해보고 다시 풀어볼 필요가 있는 문제이다. 조금만 더 생각하면 금방 풀 수 있는 문제이지만 순발력을 요하는 문제라고 생각이 된다.
H, M = map(int, input().split())
if M < 45: # 분단위가 45분보다 작을 때
if H == 0: # 0 시이면
H = 23
M += 60
else: # 0시가 아니면 (0시보다 크면)
H -= 1
M += 60
print(H, M-45)
728x90
Comments