結果

問題 No.893 お客様を誘導せよ
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2019-11-06 17:30:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 11,432 KB
実行使用メモリ 17,760 KB
最終ジャッジ日時 2023-10-13 02:38:17
合計ジャッジ時間 2,466 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,108 KB
testcase_01 AC 78 ms
15,288 KB
testcase_02 AC 92 ms
15,608 KB
testcase_03 AC 123 ms
16,332 KB
testcase_04 AC 127 ms
16,224 KB
testcase_05 AC 120 ms
16,180 KB
testcase_06 AC 108 ms
15,860 KB
testcase_07 AC 78 ms
15,040 KB
testcase_08 AC 165 ms
17,760 KB
testcase_09 AC 83 ms
15,064 KB
testcase_10 AC 80 ms
15,280 KB
testcase_11 AC 93 ms
15,140 KB
testcase_12 AC 90 ms
15,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
P = N.times.map{ gets.split.map(&:to_i).tap(&:shift) }
O = []
until P.all?(&:empty?)
  P.each do |r|
    O << r.shift if r.size > 0
  end
end
puts O * ' '
0