結果

問題 No.365 ジェンガソート
ユーザー 👑 yumechiyumechi
提出日時 2016-04-30 01:04:45
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 1,050 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 85,112 KB
最終ジャッジ日時 2023-08-02 06:57:36
合計ジャッジ時間 6,000 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,068 KB
testcase_01 AC 72 ms
71,220 KB
testcase_02 AC 72 ms
71,416 KB
testcase_03 AC 72 ms
71,484 KB
testcase_04 AC 72 ms
71,448 KB
testcase_05 AC 72 ms
71,436 KB
testcase_06 AC 72 ms
71,340 KB
testcase_07 AC 73 ms
71,324 KB
testcase_08 AC 71 ms
71,324 KB
testcase_09 AC 73 ms
71,176 KB
testcase_10 AC 71 ms
71,076 KB
testcase_11 AC 73 ms
71,080 KB
testcase_12 AC 73 ms
71,348 KB
testcase_13 AC 72 ms
71,232 KB
testcase_14 AC 70 ms
71,328 KB
testcase_15 AC 72 ms
71,448 KB
testcase_16 AC 85 ms
82,540 KB
testcase_17 AC 88 ms
84,736 KB
testcase_18 AC 77 ms
75,876 KB
testcase_19 AC 91 ms
85,016 KB
testcase_20 AC 79 ms
77,844 KB
testcase_21 AC 77 ms
76,744 KB
testcase_22 AC 85 ms
82,632 KB
testcase_23 AC 81 ms
79,104 KB
testcase_24 AC 84 ms
82,004 KB
testcase_25 AC 77 ms
76,660 KB
testcase_26 AC 81 ms
80,340 KB
testcase_27 AC 89 ms
85,004 KB
testcase_28 AC 84 ms
80,900 KB
testcase_29 AC 89 ms
83,640 KB
testcase_30 AC 83 ms
80,876 KB
testcase_31 AC 77 ms
77,600 KB
testcase_32 AC 78 ms
77,268 KB
testcase_33 AC 87 ms
84,740 KB
testcase_34 AC 77 ms
75,896 KB
testcase_35 AC 85 ms
81,996 KB
testcase_36 AC 88 ms
85,016 KB
testcase_37 AC 89 ms
85,092 KB
testcase_38 AC 90 ms
84,828 KB
testcase_39 AC 91 ms
84,972 KB
testcase_40 AC 90 ms
85,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n = int(input())
    al = [int(i) for i in input().split()]

    res = n
    for i in al[::-1]:
        if res == i:
            res -= 1
    print(res)

if __name__=='__main__':
    solve()
0