結果
問題 |
No.123 カードシャッフル
|
ユーザー |
|
提出日時 | 2022-12-23 12:38:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,392 KB |
最終ジャッジ日時 | 2024-11-18 03:59:20 |
合計ジャッジ時間 | 1,284 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 3 |
other | RE * 10 |
ソースコード
import math n, k = (int(x) for x in input().split()) card = [i + 1 for i in range(n)] for _ in range(k): i = int(input()) - 1 temp = card[i] card.remove(i) card.insert(0, temp) print(card[0])