結果
| 問題 |
No.1236 長針と短針
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-25 21:54:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-06-28 06:30:41 |
| 合計ジャッジ時間 | 2,067 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
cand=[60*i*60//11 for i in range(12)]
#print(cand)
a,b=map(int,input().split())
a%=12
b*=60
#print(int(cand[a]-b),int(cand[a]+360-b))
if cand[a]>=b:
print(int(cand[a]-b))
else:
a=(a+1)%12
print(int(cand[a]+3600-b))