結果
問題 | No.734 Careful Engineer |
ユーザー |
![]() |
提出日時 | 2018-11-26 22:22:48 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 553 bytes |
コンパイル時間 | 3,740 ms |
コンパイル使用メモリ | 64,708 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-18 00:06:20 |
合計ジャッジ時間 | 4,318 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 |
ソースコード
import strutilsproc nextString: string =result = ""while not endOfFile stdin:let nextChar = readChar stdincase nextCharof '\r':discardof "\n"[0], ' ':breakelse:add result, nextCharproc nextInt: int =return parseInt nextString()proc main: void =let hand = nextInt() * 60let runCost = nextInt()let initCost = nextInt() * 3600if hand <= runCost:echo -1returnecho (initCost - 1) div (hand - runCost) + 1when isMainModule:main()