結果

問題 No.123 カードシャッフル
ユーザー 👑 yumechiyumechi
提出日時 2015-09-23 06:19:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 89,636 KB
最終ジャッジ日時 2023-09-26 14:34:49
合計ジャッジ時間 2,434 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,300 KB
testcase_01 AC 70 ms
71,460 KB
testcase_02 AC 68 ms
71,292 KB
testcase_03 AC 72 ms
71,304 KB
testcase_04 AC 69 ms
71,104 KB
testcase_05 AC 69 ms
71,212 KB
testcase_06 AC 69 ms
71,560 KB
testcase_07 AC 69 ms
71,116 KB
testcase_08 AC 67 ms
71,408 KB
testcase_09 AC 70 ms
71,316 KB
testcase_10 AC 97 ms
89,316 KB
testcase_11 AC 109 ms
89,636 KB
testcase_12 AC 112 ms
89,624 KB
testcase_13 AC 116 ms
89,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
ali = list(map(lambda x: int(x) - 1, input().split()))
vli = [i+1 for i in range(N)]
for a in ali:
    vli = [vli[a]] + vli[:a] + vli[a+1:]
print(vli[0])
0