結果

問題 No.365 ジェンガソート
ユーザー mkawa2mkawa2
提出日時 2019-12-15 18:04:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 516 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 10,988 KB
実行使用メモリ 20,292 KB
最終ジャッジ日時 2023-09-15 15:39:51
合計ジャッジ時間 2,761 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,504 KB
testcase_01 AC 17 ms
8,604 KB
testcase_02 AC 18 ms
8,604 KB
testcase_03 AC 18 ms
8,480 KB
testcase_04 AC 17 ms
8,648 KB
testcase_05 AC 18 ms
8,536 KB
testcase_06 AC 17 ms
8,656 KB
testcase_07 AC 17 ms
8,480 KB
testcase_08 AC 17 ms
8,628 KB
testcase_09 AC 16 ms
8,676 KB
testcase_10 AC 17 ms
8,540 KB
testcase_11 AC 17 ms
8,556 KB
testcase_12 AC 17 ms
8,472 KB
testcase_13 AC 17 ms
8,612 KB
testcase_14 AC 17 ms
8,468 KB
testcase_15 AC 17 ms
8,684 KB
testcase_16 AC 39 ms
16,768 KB
testcase_17 AC 45 ms
18,584 KB
testcase_18 AC 20 ms
9,528 KB
testcase_19 AC 47 ms
19,068 KB
testcase_20 AC 27 ms
11,936 KB
testcase_21 AC 24 ms
11,116 KB
testcase_22 AC 40 ms
16,700 KB
testcase_23 AC 31 ms
13,824 KB
testcase_24 AC 39 ms
16,612 KB
testcase_25 AC 24 ms
10,792 KB
testcase_26 AC 34 ms
14,668 KB
testcase_27 AC 46 ms
19,292 KB
testcase_28 AC 34 ms
15,092 KB
testcase_29 AC 43 ms
18,220 KB
testcase_30 AC 35 ms
15,360 KB
testcase_31 AC 25 ms
11,456 KB
testcase_32 AC 24 ms
11,300 KB
testcase_33 AC 46 ms
20,292 KB
testcase_34 AC 22 ms
10,508 KB
testcase_35 AC 39 ms
16,516 KB
testcase_36 AC 49 ms
20,000 KB
testcase_37 AC 46 ms
19,920 KB
testcase_38 AC 47 ms
19,864 KB
testcase_39 AC 48 ms
20,008 KB
testcase_40 AC 49 ms
19,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import Counter

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    n=int(input())
    aa=LI()
    ans=n
    for a in aa[::-1]:
        if a==ans:
            ans-=1
    print(ans)
main()
0