結果
問題 | No.70 睡眠の重要性! |
ユーザー | minokasago |
提出日時 | 2019-10-31 20:17:25 |
言語 | Kotlin (1.9.23) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 16,157 ms |
コンパイル使用メモリ | 412,388 KB |
実行使用メモリ | 57,196 KB |
最終ジャッジ日時 | 2023-10-13 00:11:08 |
合計ジャッジ時間 | 15,611 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 333 ms
57,196 KB |
testcase_01 | AC | 335 ms
56,852 KB |
testcase_02 | AC | 337 ms
56,888 KB |
testcase_03 | AC | 338 ms
57,044 KB |
testcase_04 | AC | 337 ms
56,916 KB |
testcase_05 | WA | - |
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used fun main(args: Array<String>) ^
ソースコード
fun main(args: Array<String>) { val n = readLine()!!.toInt() var sum = 0 repeat(n) { var hm: List<Int> = readLine()!!.split(" ", ":").map { it.toInt() } if (hm[0] > hm[2]) sum += 24 * 60 sum += hm[2] * 60 + hm[3] - hm[0] * 60 - hm[1] } println("${sum}") }