結果
問題 | No.123 カードシャッフル |
ユーザー |
|
提出日時 | 2022-11-25 23:37:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 93 ms / 5,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,160 KB |
最終ジャッジ日時 | 2024-10-02 06:06:27 |
合計ジャッジ時間 | 1,395 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 |
ソースコード
N, M = list(map(int, input().split()))A = list(map(int, input().split()))list = []for n in range(1, N + 1):list.append(n)for i in range(M):num = A[i]list.insert(0, list[num - 1])del list[(A[i])]print(list[0])