結果

問題 No.123 カードシャッフル
ユーザー syokeininsyokeinin
提出日時 2015-01-12 00:43:40
言語 Ruby
(3.3.0)
結果
AC  
実行時間 140 ms / 5,000 ms
コード長 90 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 11,408 KB
実行使用メモリ 21,508 KB
最終ジャッジ日時 2023-08-27 05:26:10
合計ジャッジ時間 2,444 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,288 KB
testcase_01 AC 82 ms
15,120 KB
testcase_02 AC 81 ms
15,268 KB
testcase_03 AC 84 ms
15,068 KB
testcase_04 AC 81 ms
15,112 KB
testcase_05 AC 83 ms
15,072 KB
testcase_06 AC 82 ms
15,100 KB
testcase_07 AC 82 ms
15,264 KB
testcase_08 AC 81 ms
15,012 KB
testcase_09 AC 80 ms
15,288 KB
testcase_10 AC 135 ms
21,160 KB
testcase_11 AC 137 ms
21,452 KB
testcase_12 AC 137 ms
21,508 KB
testcase_13 AC 140 ms
21,420 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

d =*1..gets.split[0].to_i
gets.split.map(&:to_i).each{|a|d.unshift d.delete_at a-1}
p d[0]
0