結果

問題 No.734 Careful Engineer
ユーザー Theta
提出日時 2022-10-18 13:40:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-06-20 01:40:24
合計ジャッジ時間 1,200 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import ceil


def main():
    A, B, C = map(int, input().split())
    A_seconds = A * 60
    C_seconds = C * 3600

    if A_seconds <= B:
        print(-1)
        return

    print(ceil(C_seconds / (A_seconds - B)))


if __name__ == "__main__":
    main()
0