結果
| 問題 | No.123 カードシャッフル |
| コンテスト | |
| ユーザー |
surprise_tanaka
|
| 提出日時 | 2018-11-24 19:53:01 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 5,000 ms |
| + 815µs | |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 17,672 KB |
| 最終ジャッジ日時 | 2026-10-07 10:26:56 |
| 合計ジャッジ時間 | 1,760 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 |
ソースコード
N,M = map(int,input().split())
shuffle_card = list(map(int,input().split()))
N = list(range(1,N+1))
for i in range(M):
shuffle_num = shuffle_card[i]
work = N[shuffle_num - 1]
del N[shuffle_num - 1]
N.insert(0,work)
print(N[0])
surprise_tanaka