結果

問題 No.70 睡眠の重要性!
ユーザー バカらっく
提出日時 2019-09-23 09:36:21
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 326 ms / 5,000 ms
コード長 282 bytes
コンパイル時間 13,769 ms
コンパイル使用メモリ 433,580 KB
実行使用メモリ 52,160 KB
最終ジャッジ日時 2024-09-19 04:12:48
合計ジャッジ時間 14,189 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
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