結果

問題 No.1537 私の代わりに仕事やっといてください。
ユーザー 小野寺健小野寺健
提出日時 2021-11-15 09:18:49
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 159 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 11,324 KB
実行使用メモリ 45,812 KB
最終ジャッジ日時 2023-08-20 23:03:02
合計ジャッジ時間 3,295 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,032 KB
testcase_01 AC 80 ms
15,080 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 79 ms
15,152 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
A = gets.split(" ").map.with_index{|s, i| [s.to_i, i+1]}

a = A[1, N-1].sort_by{|x, i| -x}.map{|x, i| i.to_s}

puts (["1"] + a + ["1"]).join(" ")
0