結果
| 問題 | No.2184 A○B問題 |
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2023-01-13 22:10:40 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-30 12:59:57 |
| 合計ジャッジ時間 | 3,854 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
コンパイルメッセージ
Syntax OK
ソースコード
A = gets.split.map(&:to_i)
B = gets.split.map(&:to_i)
res = [*1..5]
temp = Array.new(5)
A.each_with_index do |a, i|
temp[i] = res[a - 1]
end
res = temp.dup
B.each_with_index do |b, i|
temp[i] = res[b - 1]
end
res = temp.dup
puts res.join(' ')
siman