結果

問題 No.734 Careful Engineer
ユーザー rutilicusrutilicus
提出日時 2021-02-21 23:56:11
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 296 ms / 2,000 ms
コード長 376 bytes
コンパイル時間 13,578 ms
コンパイル使用メモリ 435,004 KB
実行使用メモリ 54,476 KB
最終ジャッジ日時 2023-10-20 00:38:54
合計ジャッジ時間 18,676 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 288 ms
54,460 KB
testcase_01 AC 288 ms
54,464 KB
testcase_02 AC 291 ms
54,476 KB
testcase_03 AC 288 ms
54,472 KB
testcase_04 AC 291 ms
54,476 KB
testcase_05 AC 293 ms
54,464 KB
testcase_06 AC 288 ms
54,476 KB
testcase_07 AC 289 ms
54,468 KB
testcase_08 AC 283 ms
54,476 KB
testcase_09 AC 290 ms
54,476 KB
testcase_10 AC 291 ms
54,452 KB
testcase_11 AC 296 ms
54,464 KB
testcase_12 AC 292 ms
54,468 KB
testcase_13 AC 289 ms
54,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val builder = StringBuilder()

    val (a, b, c) = readInputLine().split(" ").map { it.toLong() }
    val divisor = 60 * a - b

    if (divisor <= 0L) {
        builder.appendLine(-1)
    } else {
        builder.appendLine((3600 * c + (divisor - 1L)) / divisor)
    }

    print(builder.toString())
}

fun readInputLine(): String {
    return readLine()!!
}
0