結果

問題 No.123 カードシャッフル
ユーザー maimai
提出日時 2016-02-05 21:29:44
言語 Ruby
(3.3.0)
結果
AC  
実行時間 675 ms / 5,000 ms
コード長 105 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 11,336 KB
実行使用メモリ 23,004 KB
最終ジャッジ日時 2023-08-27 01:31:23
合計ジャッジ時間 4,511 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,268 KB
testcase_01 AC 75 ms
15,136 KB
testcase_02 AC 77 ms
15,076 KB
testcase_03 AC 75 ms
15,012 KB
testcase_04 AC 75 ms
15,240 KB
testcase_05 AC 75 ms
15,228 KB
testcase_06 AC 78 ms
15,116 KB
testcase_07 AC 77 ms
15,192 KB
testcase_08 AC 77 ms
15,244 KB
testcase_09 AC 75 ms
15,304 KB
testcase_10 AC 616 ms
22,792 KB
testcase_11 AC 622 ms
23,004 KB
testcase_12 AC 617 ms
23,000 KB
testcase_13 AC 675 ms
22,916 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
a=gets.split(" ").map!(&:to_i)
l=(1..10000).to_a
a.each{|i|
    l.unshift(l.delete_at(i-1))
}
p l[0]
0