結果

問題 No.123 カードシャッフル
ユーザー zakuro9715zakuro9715
提出日時 2015-10-10 03:02:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 145 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 15,652 KB
最終ジャッジ日時 2023-09-27 10:44:27
合計ジャッジ時間 1,213 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 17 ms
7,676 KB
testcase_02 AC 17 ms
7,884 KB
testcase_03 WA -
testcase_04 AC 15 ms
7,748 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 15 ms
7,816 KB
testcase_10 AC 41 ms
9,216 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
p = 1
for a in map(int, input().split()):
    if p == 1:
        p == a
    elif p >= a:
        p -= 1
print(p)
0