結果

問題 No.296 n度寝
ユーザー komkomhkomkomh
提出日時 2019-04-17 10:51:14
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 325 ms / 1,000 ms
コード長 201 bytes
コンパイル時間 12,013 ms
コンパイル使用メモリ 428,684 KB
実行使用メモリ 57,040 KB
最終ジャッジ日時 2024-04-30 20:19:33
合計ジャッジ時間 17,824 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 313 ms
56,912 KB
testcase_01 AC 320 ms
57,012 KB
testcase_02 AC 322 ms
56,808 KB
testcase_03 AC 319 ms
56,836 KB
testcase_04 AC 323 ms
56,868 KB
testcase_05 AC 316 ms
56,824 KB
testcase_06 AC 317 ms
56,916 KB
testcase_07 AC 316 ms
56,908 KB
testcase_08 AC 316 ms
56,920 KB
testcase_09 AC 325 ms
57,040 KB
testcase_10 AC 320 ms
57,028 KB
testcase_11 AC 319 ms
56,812 KB
testcase_12 AC 316 ms
56,776 KB
testcase_13 AC 321 ms
56,816 KB
testcase_14 AC 313 ms
56,820 KB
testcase_15 AC 315 ms
56,868 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