結果

問題 No.296 n度寝
ユーザー komkomhkomkomh
提出日時 2019-04-17 10:51:14
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 287 ms / 1,000 ms
コード長 201 bytes
コンパイル時間 12,743 ms
コンパイル使用メモリ 420,792 KB
実行使用メモリ 53,216 KB
最終ジャッジ日時 2023-08-13 01:46:28
合計ジャッジ時間 17,530 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 281 ms
53,016 KB
testcase_01 AC 285 ms
53,140 KB
testcase_02 AC 286 ms
53,000 KB
testcase_03 AC 285 ms
52,948 KB
testcase_04 AC 284 ms
53,008 KB
testcase_05 AC 287 ms
53,032 KB
testcase_06 AC 283 ms
52,940 KB
testcase_07 AC 284 ms
52,948 KB
testcase_08 AC 284 ms
53,028 KB
testcase_09 AC 286 ms
52,996 KB
testcase_10 AC 280 ms
52,984 KB
testcase_11 AC 284 ms
53,216 KB
testcase_12 AC 283 ms
52,948 KB
testcase_13 AC 281 ms
53,008 KB
testcase_14 AC 284 ms
52,944 KB
testcase_15 AC 284 ms
52,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

fun main() {
    val (n, h, m, t) = readLine()!!.split(" ").map(String::toInt)

    val upM = (n - 1) * t + m
    val upH = upM / 60 + h
    println(upH % 24)
    println(upM % 60)
}
0