結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
d_nishiyama85
|
| 提出日時 | 2016-05-30 02:37:29 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 84 ms / 5,000 ms |
| コード長 | 262 bytes |
| コンパイル時間 | 298 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-10-07 17:56:14 |
| 合計ジャッジ時間 | 1,836 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i
total = 0
n.times {
s, e = gets.split(' ')
sh, sm = s.split(':')
eh, em = e.split(':')
start = sh.to_i * 60 + sm.to_i
finish = eh.to_i * 60 + em.to_i
if start > finish
finish += 24 * 60
end
total += finish - start
}
puts total
d_nishiyama85