結果

問題 No.893 お客様を誘導せよ
ユーザー shi-moshi-mo
提出日時 2020-09-30 01:01:41
言語 Ruby
(3.3.0)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 484 ms
コンパイル使用メモリ 11,496 KB
実行使用メモリ 18,616 KB
最終ジャッジ日時 2023-09-18 03:55:37
合計ジャッジ時間 3,873 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,144 KB
testcase_01 AC 81 ms
15,140 KB
testcase_02 AC 97 ms
16,104 KB
testcase_03 AC 136 ms
17,996 KB
testcase_04 AC 137 ms
18,068 KB
testcase_05 AC 131 ms
17,616 KB
testcase_06 AC 115 ms
17,016 KB
testcase_07 AC 84 ms
15,064 KB
testcase_08 AC 178 ms
18,616 KB
testcase_09 AC 83 ms
15,040 KB
testcase_10 AC 79 ms
15,124 KB
testcase_11 AC 98 ms
16,712 KB
testcase_12 AC 98 ms
17,216 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a = []
n.times do |i|
  p, *ai = gets.split.map(&:to_i)
  p.times do |j|
    a[j] ||= []
    a[j][i] = ai[j]
  end
end
puts a.flatten.select{|x| !x.nil? }.join(' ')
0