Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions froglike6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
| 22์ฐจ์‹œ | 2025.07.22 | ๊ทธ๋ž˜ํ”„ | [๋ฐค(Time For The Moon Night)](https://www.acmicpc.net/problem/34064)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/88|
| 23์ฐจ์‹œ | 2025.07.22 | ์ •์ˆ˜ | [Fibonacci](https://www.acmicpc.net/problem/7677)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/89|
| 24์ฐจ์‹œ | 2025.08.01 | ๊ตฌํ˜„ | [์„ธ๊ทธ๋จผํŠธ ํŠธ๋ฆฌ๋ณด๋‹ค๋„ ๋ฐ”๏ฝฅ๋กœ๏ฝฅ๋„ˆ๏ฝฅโ™ก](https://www.acmicpc.net/problem/34075)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/91|
| 25์ฐจ์‹œ | 2025.08.25 | ๊ตฌํ˜„ | [์ฐฝํ•˜์˜ ๊ณ ์žฅ๋‚œ ์‹œ๊ณ„ ์ด์•ผ๊ธฐ](https://www.acmicpc.net/problem/34024)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/94|
---
38 changes: 38 additions & 0 deletions froglike6/implementation/34024.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import sys
input = sys.stdin.readline

def gojangnan_clock(h, m, n):
theta_h = h * 30
theta_m = m * 6
delta0 = (theta_m - theta_h) % 360
t1 = (360 - delta0) / 6
t = n
if t <= t1:
theta_h += 6 * t
theta_m += 12 * t
t=0
else:
theta_h += 6 * t1
theta_m += 12 * t1
t -= t1
block = t//80
theta_h += 6 * 80 * block
theta_m += 120 * block
t -= 80 * block
if t <= 20:
theta_h += 6 * t
theta_m -= 12 * t
t=0
else:
theta_h += 120
theta_m -= 240
t -= 20
theta_h += 6 * t
theta_m += 12 * t
t = 0
theta_h %= 360
theta_m %= 360
return (int(theta_h // 30) % 12, int(theta_m // 6))
h, m = map(int, input().split())
n = int(input())
print(*gojangnan_clock(h,m,n))