結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 17 ms
7,792 KB
testcase_02 AC 14 ms
7,888 KB
testcase_03 WA -
testcase_04 AC 14 ms
7,952 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 13 ms
7,744 KB
testcase_10 AC 39 ms
9,344 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