結果
| 問題 | No.123 カードシャッフル |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-09-03 09:24:03 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 175 ms |
| コンパイル使用メモリ | 77,264 KB |
| 最終ジャッジ日時 | 2025-12-03 16:34:30 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 3 WA * 7 |
ソースコード
N,M = map(int, raw_input().split())
A = map(int, raw_input().split())
pos = [0] * (N + 1)
for i in range(1, N + 1):
pos[i] = i
for x in A:
pos[0] = pos[x]
for y in range(1, x + 1):
pos[y] = pos[y - 1]
print pos[0]
togatoga