結果

問題 No.734 Careful Engineer
ユーザー GrayCoderGrayCoder
提出日時 2018-09-28 21:31:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 349 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,440 KB
最終ジャッジ日時 2024-04-20 10:54:16
合計ジャッジ時間 3,526 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
17,440 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 #

from sys import stdin

def main():
    A, B, C = map(int, input().split())

    a = A * 60
    c = C * 3600
    if a <= B:
        print(-1)
        return

    x = 1
    while 1:
        case1 = a * x
        case2 = B * x + c
        if case1 > case2:
            print(x)
            break
        x += 1

input = lambda: stdin.readline()
main()
0