結果

問題 No.1236 長針と短針
ユーザー yasshi_noyasshi_no
提出日時 2020-09-25 21:32:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 704 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,164 KB
実行使用メモリ 77,944 KB
最終ジャッジ日時 2023-09-10 14:57:24
合計ジャッジ時間 5,085 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 157 ms
77,704 KB
testcase_01 AC 155 ms
77,740 KB
testcase_02 AC 154 ms
77,944 KB
testcase_03 AC 158 ms
77,776 KB
testcase_04 AC 157 ms
77,776 KB
testcase_05 AC 157 ms
77,520 KB
testcase_06 AC 157 ms
77,932 KB
testcase_07 AC 156 ms
77,700 KB
testcase_08 AC 154 ms
77,792 KB
testcase_09 AC 155 ms
77,916 KB
testcase_10 WA -
testcase_11 AC 156 ms
77,796 KB
testcase_12 AC 152 ms
77,908 KB
testcase_13 AC 155 ms
77,744 KB
testcase_14 WA -
testcase_15 AC 151 ms
77,700 KB
testcase_16 AC 152 ms
77,916 KB
testcase_17 AC 154 ms
77,740 KB
testcase_18 AC 153 ms
77,816 KB
testcase_19 AC 152 ms
77,548 KB
testcase_20 AC 150 ms
77,688 KB
testcase_21 AC 150 ms
77,684 KB
testcase_22 AC 152 ms
77,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect,collections,copy,itertools,math,string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def main():
    
    lst = [0,65.45454545454545,130.9090909090909,146.36363636363637,261.8181818181818,327.27272727272725,392.72727272727275,458.1818181818182,523.6363636363636,589.0909090909091,654.5454545454545,720]
    a, b = LI()
    if a>=12:
        a -= 12

    mn  = a* 60+ b
    nxt = 0

    while mn>lst[nxt]:
        nxt += 1

    ans = (lst[nxt]-mn)*60
    ans = int(ans)

    print(ans)





main()
0