結果

問題 No.1236 長針と短針
ユーザー miya145592
提出日時 2023-05-15 02:36:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 1,159 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-11-30 12:04:53
合計ジャッジ時間 2,227 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())
r = 12*60*60
h = A*60*60+B*60
m = 12*B*60
h%=r
m%=r
if m<=h:
    sa = h-m
else:
    sa = h-m+12*60*60

t = 12-1

print(sa//t)
0