結果
問題 |
No.734 Careful Engineer
|
ユーザー |
![]() |
提出日時 | 2018-11-26 22:29:55 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 410 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 12,730 ms |
コンパイル使用メモリ | 433,564 KB |
実行使用メモリ | 59,320 KB |
最終ジャッジ日時 | 2025-06-20 00:45:52 |
合計ジャッジ時間 | 20,071 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`) val hand = sc.nextLong() * 60 val runCost = sc.nextLong() val initCost = sc.nextLong() * 3600 if (hand <= runCost) { println(-1) return } println((initCost - 1) / (hand - runCost) + 1) }