結果

問題 No.123 カードシャッフル
ユーザー Tksi
提出日時 2017-08-10 02:05:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 228 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 16,972 KB
最終ジャッジ日時 2024-10-12 00:36:27
合計ジャッジ時間 1,265 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1 RE * 2
other AC * 1 WA * 1 RE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

crd = list(range(1, list(map(int, input().split()))[0] + 1))
chg = list(map(int, input().split()))
for i in range(len(chg)):
    for j in reversed(range(chg[i] + 1)):
        crd[j], crd[j - 1] = crd[j - 1], crd[j]
print(crd[0])
0