結果

問題 No.734 Careful Engineer
ユーザー rutilicus
提出日時 2021-02-21 23:56:11
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 391 ms / 2,000 ms
コード長 376 bytes
コンパイル時間 14,265 ms
コンパイル使用メモリ 470,288 KB
実行使用メモリ 59,404 KB
最終ジャッジ日時 2025-06-20 01:29:13
合計ジャッジ時間 21,878 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

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