結果

問題 No.70 睡眠の重要性!
ユーザー バカらっくバカらっく
提出日時 2019-09-23 04:50:04
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 332 ms / 5,000 ms
コード長 282 bytes
コンパイル時間 13,995 ms
コンパイル使用メモリ 450,180 KB
実行使用メモリ 54,572 KB
最終ジャッジ日時 2023-10-19 07:55:18
合計ジャッジ時間 16,466 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 319 ms
54,548 KB
testcase_01 AC 320 ms
54,536 KB
testcase_02 AC 320 ms
54,556 KB
testcase_03 AC 332 ms
54,572 KB
testcase_04 AC 325 ms
54,572 KB
testcase_05 AC 323 ms
54,552 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

fun main(arr:Array<String>) {
    val dayCount = readLine()!!.toInt()
    val ans = (1..dayCount).map { readLine()!!.split(" ").map { it.split(":").map { it.toInt() }.let { it[0]*60+it[1] } }.let { it[1] - it[0] } }.map { if (it >= 0) it else it+(60*24) }
    println(ans.sum())
}

0