[백준/파이썬] 29657번 Стандарты времени
-Codea1, b1, c1 = map(int, input().split())a2, b2, c2 = map(int, input().split())h, m, s = map(int, input().split())total_seconds = h * b1 * c1 + m * c1 + sres_h = total_seconds // (b2 * c2) % a2res_m = total_seconds % (b2 * c2) // c2res_s = total_seconds % c2print(res_h, res_m, res_s)
2025. 3. 10.