結果
問題 | No.296 n度寝 |
ユーザー | カルロス |
提出日時 | 2016-01-03 17:59:29 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 167 bytes |
コンパイル時間 | 517 ms |
コンパイル使用メモリ | 11,848 KB |
実行使用メモリ | 16,072 KB |
最終ジャッジ日時 | 2023-10-19 14:46:11 |
合計ジャッジ時間 | 3,407 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
n,h,m,t = gets.split.map(&:to_i) time = h * 60 + m if n > 0 time += (n-1)*t end if time >=1440 time -= 1440 end puts time h = time / 60 m = time - h*60 puts h puts m