結果

問題 No.123 カードシャッフル
ユーザー TawaraTawara
提出日時 2015-09-15 23:51:00
言語 Python2
(2.7.18)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 12,300 KB
最終ジャッジ日時 2023-09-26 12:07:01
合計ジャッジ時間 1,669 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,976 KB
testcase_01 AC 11 ms
6,052 KB
testcase_02 AC 11 ms
5,928 KB
testcase_03 AC 11 ms
5,940 KB
testcase_04 AC 12 ms
5,856 KB
testcase_05 AC 11 ms
6,056 KB
testcase_06 AC 11 ms
6,092 KB
testcase_07 AC 11 ms
5,896 KB
testcase_08 AC 11 ms
5,932 KB
testcase_09 AC 11 ms
6,004 KB
testcase_10 AC 86 ms
7,264 KB
testcase_11 AC 88 ms
12,300 KB
testcase_12 AC 96 ms
11,340 KB
testcase_13 AC 91 ms
11,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,raw_input().split())
A = map(int,raw_input().split())
C = [i+1 for i in xrange(N)]
for i in xrange(M):
	c = C.pop(A[i]-1)
	C[:0] = [c]
print C[0]
0