結果

問題 No.734 Careful Engineer
ユーザー akitsugu777akitsugu777
提出日時 2018-10-05 11:05:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 276 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-04-20 16:42:41
合計ジャッジ時間 3,618 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
16,128 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = [int(_) for _ in input().split()]

ans = []
for i in range(2):
    x = i*a*60
    y = c*3600 + i*b
    ans.append(x-y)

if ans[1]-ans[0] < 0:
    print(-1)
else:
    i = 0
    while x - y < 0:
        x = i*a*60
        y = c*3600 + i*b
        i += 1
    print(i-1)
0