結果

問題 No.123 カードシャッフル
ユーザー nebukuro09nebukuro09
提出日時 2016-09-29 10:27:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 992 ms
コンパイル使用メモリ 6,488 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2023-08-13 14:42:23
合計ジャッジ時間 1,898 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,120 KB
testcase_01 AC 11 ms
5,916 KB
testcase_02 AC 11 ms
5,840 KB
testcase_03 AC 11 ms
5,968 KB
testcase_04 AC 11 ms
5,924 KB
testcase_05 AC 11 ms
5,884 KB
testcase_06 AC 11 ms
6,076 KB
testcase_07 AC 11 ms
6,080 KB
testcase_08 AC 11 ms
6,084 KB
testcase_09 AC 11 ms
6,088 KB
testcase_10 AC 71 ms
7,256 KB
testcase_11 AC 80 ms
12,288 KB
testcase_12 AC 80 ms
11,216 KB
testcase_13 AC 80 ms
11,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, raw_input().split())
A = map(int, raw_input().split())
C = range(N, 0, -1)

for a in A:
    C.append(C.pop(-a))
print C[-1]
0