結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
|
提出日時 | 2018-07-13 22:49:17 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 122 ms / 2,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 215 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-10-09 05:26:46 |
合計ジャッジ時間 | 4,576 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
コンパイルメッセージ
Main.rb:9: warning: assigned but unused variable - m Syntax OK
ソースコード
N = gets.to_icustomers = 20.times.map{[]}N.times{# p customerssa = gets.splitcase sa.shiftwhen ?0n, m, *a = sacustomers[n.to_i-1] = awhen ?1neta = sa.shiftp (customers.index{|wish_list|idx = wish_list.index(neta)idx && wish_list.delete_at(idx)} || -2) + 1elsen = sa.shift.to_icustomers[n - 1] = Array.newend}