結果
問題 | No.123 カードシャッフル |
ユーザー |
![]() |
提出日時 | 2023-05-30 03:06:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 276 bytes |
コンパイル時間 | 336 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 88,704 KB |
最終ジャッジ日時 | 2024-12-28 11:22:03 |
合計ジャッジ時間 | 2,074 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 3 WA * 7 |
ソースコード
n,m=map(int,input().split())a=list(map(int,input().split()))x = [ i for i in range(n,0,-1)]for i in range(m):t=a[i]tt = []for i in range(t):tt.append(x.pop())for i in tt[1:]:x.append(i)x.append(tt[0])print(x[-1])