結果

問題 No.1236 長針と短針
ユーザー TomoyarnTomoyarn
提出日時 2022-02-06 08:10:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 1,056 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 71,560 KB
最終ジャッジ日時 2023-09-02 06:57:51
合計ジャッジ時間 3,953 ms
ジャッジサーバーID
(参考情報)
judge16 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,168 KB
testcase_01 AC 68 ms
71,220 KB
testcase_02 AC 68 ms
71,128 KB
testcase_03 AC 68 ms
71,476 KB
testcase_04 AC 67 ms
70,980 KB
testcase_05 AC 69 ms
71,264 KB
testcase_06 AC 69 ms
71,224 KB
testcase_07 AC 69 ms
71,128 KB
testcase_08 AC 70 ms
71,264 KB
testcase_09 AC 70 ms
71,320 KB
testcase_10 AC 69 ms
71,344 KB
testcase_11 AC 69 ms
71,140 KB
testcase_12 AC 68 ms
71,144 KB
testcase_13 AC 70 ms
71,460 KB
testcase_14 AC 69 ms
71,164 KB
testcase_15 AC 70 ms
71,468 KB
testcase_16 AC 69 ms
71,436 KB
testcase_17 AC 76 ms
71,560 KB
testcase_18 AC 75 ms
71,260 KB
testcase_19 AC 75 ms
71,540 KB
testcase_20 AC 76 ms
71,492 KB
testcase_21 AC 74 ms
71,216 KB
testcase_22 AC 75 ms
70,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def yukicoder1236(A, B):
    x = [0, 3927, 7854, 11781, 15709, 19636, 23563, 27490, 31418, 35345, 39272, 43200]
    n = (A % 12) * 3600 + B * 60
    for i in range(12):
        if x[i] - n >= 0:
            return x[i] - n
    

A, B = map(int, input().split())
print(yukicoder1236(A, B))
0