結果
問題 | No.70 睡眠の重要性! |
ユーザー |
|
提出日時 | 2017-11-07 09:26:43 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 84 ms / 5,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 35 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-24 04:33:08 |
合計ジャッジ時間 | 987 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
コンパイルメッセージ
Main.rb:4: warning: assigned but unused variable - i Syntax OK
ソースコード
test_case = gets.chomp.to_iresult = 0for i in 0...test_case dos, e = gets.split(' ')sh, sm = s.split(':').map(&:to_i)eh, em = e.split(':').map(&:to_i)start_time = sh * 60 + smend_time = eh * 60 + emend_time += 24 * 60 if start_time > end_timeresult += (end_time - start_time)endputs result