結果

問題 No.123 カードシャッフル
ユーザー akitsugu777
提出日時 2018-11-06 11:23:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 97 ms / 5,000 ms
コード長 114 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 16,920 KB
最終ジャッジ日時 2024-11-20 20:23:45
合計ジャッジ時間 1,329 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

n = list(range(int(input().split()[0])))

for i in input().split():
    n = [n.pop(int(i)-1)] + n

print(n[0] + 1)
0