結果
問題 | No.123 カードシャッフル |
ユーザー |
|
提出日時 | 2018-11-03 09:28:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 97 ms / 5,000 ms |
コード長 | 212 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 17,228 KB |
最終ジャッジ日時 | 2024-11-20 18:26:49 |
合計ジャッジ時間 | 1,752 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 |
ソースコード
n, m = map(int,input().split())shuf = list(map(int,input().split()))x = []for i in range(n) :x.append(i+1)for i in range(m) :card = x[shuf[i]-1]del x[shuf[i]-1]x.insert(0,card)print(x[0])