結果
| 問題 |
No.123 カードシャッフル
|
| コンテスト | |
| ユーザー |
kutsutama
|
| 提出日時 | 2019-01-19 10:53:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 119 ms / 5,000 ms |
| コード長 | 209 bytes |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,348 KB |
| 最終ジャッジ日時 | 2024-07-08 13:12:09 |
| 合計ジャッジ時間 | 1,558 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 |
ソースコード
n, m = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
card = list(range(1, n + 1))
for ai in a:
top = card[ai - 1]
card[1:ai] = card[0:ai-1]
card[0] = top
print(card[0])
kutsutama