結果

問題 No.734 Careful Engineer
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-11-26 22:29:55
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 360 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 11,415 ms
コンパイル使用メモリ 430,060 KB
実行使用メモリ 55,344 KB
最終ジャッジ日時 2024-04-30 19:37:31
合計ジャッジ時間 17,000 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 355 ms
55,280 KB
testcase_01 AC 354 ms
55,308 KB
testcase_02 AC 347 ms
55,140 KB
testcase_03 AC 354 ms
55,256 KB
testcase_04 AC 352 ms
55,308 KB
testcase_05 AC 357 ms
55,300 KB
testcase_06 AC 354 ms
55,156 KB
testcase_07 AC 358 ms
55,248 KB
testcase_08 AC 359 ms
55,244 KB
testcase_09 AC 352 ms
55,160 KB
testcase_10 AC 359 ms
55,280 KB
testcase_11 AC 358 ms
55,344 KB
testcase_12 AC 355 ms
55,224 KB
testcase_13 AC 360 ms
55,340 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

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)
}
0