結果

問題 No.1236 長針と短針
ユーザー c-yanc-yan
提出日時 2020-09-25 21:56:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 487 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 8,292 KB
最終ジャッジ日時 2023-09-10 15:23:36
合計ジャッジ時間 1,682 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
8,188 KB
testcase_02 AC 16 ms
8,072 KB
testcase_03 WA -
testcase_04 AC 20 ms
8,096 KB
testcase_05 AC 16 ms
8,148 KB
testcase_06 AC 17 ms
8,124 KB
testcase_07 WA -
testcase_08 AC 17 ms
8,144 KB
testcase_09 AC 16 ms
8,092 KB
testcase_10 AC 17 ms
8,056 KB
testcase_11 AC 17 ms
8,096 KB
testcase_12 AC 16 ms
8,164 KB
testcase_13 AC 17 ms
8,112 KB
testcase_14 AC 16 ms
8,076 KB
testcase_15 AC 16 ms
8,100 KB
testcase_16 AC 17 ms
8,064 KB
testcase_17 AC 17 ms
8,040 KB
testcase_18 AC 16 ms
8,088 KB
testcase_19 AC 17 ms
8,244 KB
testcase_20 AC 16 ms
8,092 KB
testcase_21 AC 16 ms
8,088 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())

x = 12 * 60 * 60 / 11
t = (A * 60 + B) * 60 % (12 * 60 * 60)

if t / x - int(t / x) < 0.001:
    print(0)
    exit()

y = int(t / x)

for i in range(int(x) + 1):
    z = int((t + i) / x)
    if y != z:
        print(i - 1)
        exit()
0