結果
| 問題 |
No.123 カードシャッフル
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-10 17:06:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 185 bytes |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 16,572 KB |
| 最終ジャッジ日時 | 2024-11-30 11:18:18 |
| 合計ジャッジ時間 | 1,641 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 10 |
ソースコード
n,m=map(int,input().split())
a=map(int,input().split())
cards=list(range(n+1))
for i in range(m):
new_top=cards[a[i]]
del cards[a[i]]
cards.insert(1,new_top)
print(cards[1])