結果
| 問題 | No.123 カードシャッフル |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-09-03 09:24:03 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 80,708 KB |
| 実行使用メモリ | 91,180 KB |
| 最終ジャッジ日時 | 2026-07-17 20:01:47 |
| 合計ジャッジ時間 | 2,400 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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