結果

問題 No.1236 長針と短針
ユーザー hir355hir355
提出日時 2020-09-25 21:35:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 71,900 KB
最終ジャッジ日時 2023-09-10 15:00:07
合計ジャッジ時間 3,666 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,504 KB
testcase_01 AC 92 ms
71,500 KB
testcase_02 AC 94 ms
71,804 KB
testcase_03 AC 92 ms
71,668 KB
testcase_04 AC 93 ms
71,672 KB
testcase_05 AC 92 ms
71,652 KB
testcase_06 AC 92 ms
71,588 KB
testcase_07 AC 93 ms
71,812 KB
testcase_08 AC 93 ms
71,900 KB
testcase_09 AC 91 ms
71,720 KB
testcase_10 AC 94 ms
71,788 KB
testcase_11 AC 94 ms
71,656 KB
testcase_12 AC 94 ms
71,784 KB
testcase_13 AC 92 ms
71,416 KB
testcase_14 AC 92 ms
71,788 KB
testcase_15 AC 94 ms
71,620 KB
testcase_16 AC 94 ms
71,784 KB
testcase_17 AC 93 ms
71,560 KB
testcase_18 AC 93 ms
71,632 KB
testcase_19 AC 90 ms
71,536 KB
testcase_20 AC 93 ms
71,884 KB
testcase_21 AC 93 ms
71,808 KB
testcase_22 AC 90 ms
71,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import datetime
a, b = map(int, input().split())
a %= 12
t = a * 3600 + b * 60
ans = 1000000
for i in range(12):
    ans = min(ans, (i * 3600 + i * 3600 // 11 - t) % 86400)
print(ans)
0