結果
| 問題 | No.123 カードシャッフル |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-10 16:16:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 79 ms / 5,000 ms |
| コード長 | 177 bytes |
| コンパイル時間 | 76 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,216 KB |
| 最終ジャッジ日時 | 2024-09-21 02:57:10 |
| 合計ジャッジ時間 | 1,554 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 |
ソースコード
N, M = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]
cards = [x for x in range(1, N+1)]
for a in A:
cards.insert(0, cards.pop(a-1))
print(cards[0])