結果
| 問題 | No.123 カードシャッフル | 
| コンテスト | |
| ユーザー |  maspy | 
| 提出日時 | 2020-01-19 02:54:14 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 105 ms / 5,000 ms | 
| コード長 | 269 bytes | 
| コンパイル時間 | 87 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 17,136 KB | 
| 最終ジャッジ日時 | 2024-06-28 18:07:18 | 
| 合計ジャッジ時間 | 1,549 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 10 | 
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N,M,*A = map(int,read().split())
card = list(range(1,N+1))
for x in A:
    x -= 1
    c = card[x]
    del card[x]
    card = [c] + card
print(card[0])
            
            
            
        