結果

問題 No.123 カードシャッフル
ユーザー mmmpppmmmppp
提出日時 2017-02-23 16:53:11
言語 Ruby
(3.3.0)
結果
AC  
実行時間 232 ms / 5,000 ms
コード長 72 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 11,252 KB
実行使用メモリ 27,468 KB
最終ジャッジ日時 2023-08-30 21:30:05
合計ジャッジ時間 2,556 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,268 KB
testcase_01 AC 76 ms
15,284 KB
testcase_02 AC 78 ms
15,300 KB
testcase_03 AC 80 ms
15,128 KB
testcase_04 AC 81 ms
15,128 KB
testcase_05 AC 80 ms
15,268 KB
testcase_06 AC 81 ms
15,260 KB
testcase_07 AC 82 ms
15,104 KB
testcase_08 AC 81 ms
15,032 KB
testcase_09 AC 82 ms
15,132 KB
testcase_10 AC 143 ms
22,780 KB
testcase_11 AC 194 ms
27,468 KB
testcase_12 AC 231 ms
27,436 KB
testcase_13 AC 232 ms
27,212 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

c=[*1..gets.to_i]
gets.split.each{|a|c=[c.delete(c[a.to_i-1])]+c}
p c[0]
0