結果

問題 No.123 カードシャッフル
ユーザー mmmpppmmmppp
提出日時 2017-03-09 22:21:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 323 ms / 5,000 ms
コード長 69 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,324 KB
実行使用メモリ 86,844 KB
最終ジャッジ日時 2023-09-06 05:34:26
合計ジャッジ時間 2,834 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,296 KB
testcase_01 AC 83 ms
15,140 KB
testcase_02 AC 79 ms
15,168 KB
testcase_03 AC 80 ms
15,144 KB
testcase_04 AC 79 ms
15,292 KB
testcase_05 AC 81 ms
15,148 KB
testcase_06 AC 80 ms
15,092 KB
testcase_07 AC 81 ms
15,136 KB
testcase_08 AC 80 ms
15,248 KB
testcase_09 AC 82 ms
15,048 KB
testcase_10 AC 147 ms
25,840 KB
testcase_11 AC 287 ms
86,756 KB
testcase_12 AC 323 ms
86,648 KB
testcase_13 AC 322 ms
86,844 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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