結果

問題 No.123 カードシャッフル
ユーザー tarotaro789
提出日時 2017-04-22 22:21:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,292 KB
最終ジャッジ日時 2024-07-21 16:21:18
合計ジャッジ時間 1,319 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

N,sf=map(int,input().split())
lsc=[]
for i in range(1,N+1):
    lsc.append(i)
print(lsc)
lsy=list(map(int,input().split()))
print(lsy)
for i in range(len(lsy)):
    ix=lsy[i]-1
    po=lsc.pop(ix)
    lsc.insert(0,po)
print(lsc[0])
0