結果

問題 No.123 カードシャッフル
ユーザー gigurururugigurururu
提出日時 2015-01-11 23:26:56
言語 Ruby
(3.2.2)
結果
AC  
実行時間 139 ms / 5,000 ms
コード長 90 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 11,212 KB
実行使用メモリ 21,492 KB
最終ジャッジ日時 2023-08-27 05:25:55
合計ジャッジ時間 2,545 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,268 KB
testcase_01 AC 80 ms
15,268 KB
testcase_02 AC 80 ms
15,112 KB
testcase_03 AC 79 ms
15,080 KB
testcase_04 AC 81 ms
15,108 KB
testcase_05 AC 86 ms
15,068 KB
testcase_06 AC 80 ms
15,120 KB
testcase_07 AC 81 ms
15,092 KB
testcase_08 AC 80 ms
15,292 KB
testcase_09 AC 82 ms
15,304 KB
testcase_10 AC 135 ms
21,332 KB
testcase_11 AC 136 ms
21,492 KB
testcase_12 AC 138 ms
21,284 KB
testcase_13 AC 139 ms
21,248 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def g;gets.split.map(&:to_i)end
n,_=g
a=*1..n
g.each{|i|a.unshift a.delete_at(i-1)}
p a[0]
0