結果
| 問題 | No.734 Careful Engineer | 
| コンテスト | |
| ユーザー |  maspy | 
| 提出日時 | 2020-01-20 19:18:54 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 2,000 ms | 
| コード長 | 407 bytes | 
| コンパイル時間 | 171 ms | 
| コンパイル使用メモリ | 11,904 KB | 
| 実行使用メモリ | 10,240 KB | 
| 最終ジャッジ日時 | 2025-06-20 00:46:25 | 
| 合計ジャッジ時間 | 1,352 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 13 | 
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
A,B,C = map(int,read().split())
A *= 60
C *= 3600
if B >= A:
    print(-1)
    exit()
def test(x):
    # 書く
    return A*x >= C + B*x
left = 0
right = 10**20
while left + 1 < right:
    x = (left+right) // 2
    if test(x):
        right = x
    else:
        left = x
print(right)
            
            
            
        