結果

問題 No.365 ジェンガソート
ユーザー 👑 yumechiyumechi
提出日時 2016-04-30 01:04:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 75,264 KB
最終ジャッジ日時 2024-04-20 06:46:15
合計ジャッジ時間 3,899 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,584 KB
testcase_01 AC 40 ms
51,712 KB
testcase_02 AC 41 ms
51,840 KB
testcase_03 AC 40 ms
51,712 KB
testcase_04 AC 41 ms
51,712 KB
testcase_05 AC 40 ms
51,840 KB
testcase_06 AC 40 ms
51,968 KB
testcase_07 AC 39 ms
51,712 KB
testcase_08 AC 38 ms
52,096 KB
testcase_09 AC 40 ms
51,840 KB
testcase_10 AC 43 ms
51,712 KB
testcase_11 AC 41 ms
51,968 KB
testcase_12 AC 40 ms
51,712 KB
testcase_13 AC 41 ms
51,712 KB
testcase_14 AC 41 ms
51,584 KB
testcase_15 AC 41 ms
51,840 KB
testcase_16 AC 61 ms
70,528 KB
testcase_17 AC 65 ms
74,112 KB
testcase_18 AC 49 ms
60,032 KB
testcase_19 AC 68 ms
73,088 KB
testcase_20 AC 54 ms
62,720 KB
testcase_21 AC 51 ms
61,568 KB
testcase_22 AC 58 ms
69,888 KB
testcase_23 AC 53 ms
64,640 KB
testcase_24 AC 59 ms
68,864 KB
testcase_25 AC 49 ms
60,800 KB
testcase_26 AC 56 ms
66,560 KB
testcase_27 AC 63 ms
73,472 KB
testcase_28 AC 56 ms
67,072 KB
testcase_29 AC 61 ms
71,936 KB
testcase_30 AC 57 ms
67,072 KB
testcase_31 AC 51 ms
61,952 KB
testcase_32 AC 51 ms
61,952 KB
testcase_33 AC 64 ms
73,472 KB
testcase_34 AC 49 ms
60,928 KB
testcase_35 AC 58 ms
68,736 KB
testcase_36 AC 63 ms
73,472 KB
testcase_37 AC 64 ms
73,856 KB
testcase_38 AC 63 ms
73,856 KB
testcase_39 AC 67 ms
75,264 KB
testcase_40 AC 66 ms
73,984 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