結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,168 KB
testcase_01 AC 79 ms
15,288 KB
testcase_02 AC 82 ms
15,072 KB
testcase_03 AC 78 ms
15,140 KB
testcase_04 AC 79 ms
15,252 KB
testcase_05 AC 77 ms
15,124 KB
testcase_06 AC 77 ms
15,064 KB
testcase_07 AC 81 ms
15,120 KB
testcase_08 AC 81 ms
15,168 KB
testcase_09 AC 78 ms
15,200 KB
testcase_10 AC 129 ms
21,216 KB
testcase_11 AC 130 ms
21,400 KB
testcase_12 AC 131 ms
21,400 KB
testcase_13 AC 130 ms
21,508 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = [*1..gets.to_i]
gets.split.map{|i|
    a.unshift(a.slice!(i.to_i-1))
}
puts a[0]
0