結果

問題 No.123 カードシャッフル
ユーザー shika_126shika_126
提出日時 2022-03-27 02:13:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 139 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 82,180 KB
実行使用メモリ 78,556 KB
最終ジャッジ日時 2024-04-23 16:39:24
合計ジャッジ時間 1,339 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
51,964 KB
testcase_01 AC 33 ms
52,700 KB
testcase_02 AC 33 ms
52,084 KB
testcase_03 AC 34 ms
51,880 KB
testcase_04 AC 37 ms
52,156 KB
testcase_05 AC 37 ms
52,532 KB
testcase_06 AC 37 ms
52,336 KB
testcase_07 AC 36 ms
52,308 KB
testcase_08 AC 37 ms
52,028 KB
testcase_09 AC 36 ms
52,056 KB
testcase_10 AC 58 ms
77,912 KB
testcase_11 AC 62 ms
78,196 KB
testcase_12 AC 58 ms
78,556 KB
testcase_13 AC 59 ms
77,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
a = list(map(int,input().split()))
c = list(range(1,n+1))
for i in a:
    c.insert(0,c.pop(i-1))
print(c[0])
0