結果

問題 No.734 Careful Engineer
ユーザー rutilicusrutilicus
提出日時 2021-02-21 23:52:25
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 13,987 ms
コンパイル使用メモリ 440,360 KB
実行使用メモリ 54,364 KB
最終ジャッジ日時 2023-10-20 00:35:32
合計ジャッジ時間 20,107 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 297 ms
54,244 KB
testcase_01 AC 303 ms
54,244 KB
testcase_02 WA -
testcase_03 AC 304 ms
54,244 KB
testcase_04 AC 301 ms
54,240 KB
testcase_05 AC 302 ms
54,252 KB
testcase_06 AC 305 ms
54,244 KB
testcase_07 AC 305 ms
54,248 KB
testcase_08 AC 308 ms
54,256 KB
testcase_09 AC 308 ms
54,224 KB
testcase_10 AC 306 ms
54,228 KB
testcase_11 WA -
testcase_12 AC 306 ms
54,244 KB
testcase_13 AC 303 ms
54,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val builder = StringBuilder()

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

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

    print(builder.toString())
}

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