結果
| 問題 | No.734 Careful Engineer |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2018-11-26 22:25:52 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 530 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2025-06-20 00:45:16 |
| 合計ジャッジ時間 | 1,659 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
import sys
def next_str() -> str:
result = ""
while True:
tmp = sys.stdin.read(1)
if tmp.strip() != "":
result += tmp
elif tmp != '\r':
break
return result
def next_int() -> int:
return int(next_str())
def main() -> None:
hand = next_int() * 60
run_cost = next_int()
init_cost = next_int() * 3600
if hand <= run_cost:
print(-1)
return
print((init_cost - 1) // (hand - run_cost) + 1)
if __name__ == '__main__':
main()
toshiro_yanagi