結果

問題 No.365 ジェンガソート
ユーザー 👑 yumechiyumechi
提出日時 2016-04-30 00:33:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 89,616 KB
最終ジャッジ日時 2024-04-20 06:43:11
合計ジャッジ時間 3,529 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,640 KB
testcase_01 AC 33 ms
52,716 KB
testcase_02 AC 34 ms
52,928 KB
testcase_03 AC 33 ms
52,952 KB
testcase_04 AC 33 ms
53,364 KB
testcase_05 AC 33 ms
53,012 KB
testcase_06 AC 32 ms
52,164 KB
testcase_07 AC 32 ms
53,268 KB
testcase_08 AC 37 ms
53,212 KB
testcase_09 AC 34 ms
53,440 KB
testcase_10 AC 34 ms
52,404 KB
testcase_11 AC 31 ms
52,692 KB
testcase_12 AC 32 ms
53,352 KB
testcase_13 AC 32 ms
52,156 KB
testcase_14 AC 32 ms
53,428 KB
testcase_15 AC 33 ms
52,264 KB
testcase_16 AC 65 ms
83,336 KB
testcase_17 AC 68 ms
88,856 KB
testcase_18 AC 39 ms
62,592 KB
testcase_19 AC 63 ms
87,208 KB
testcase_20 AC 43 ms
68,412 KB
testcase_21 AC 44 ms
66,236 KB
testcase_22 AC 65 ms
82,104 KB
testcase_23 AC 53 ms
72,248 KB
testcase_24 AC 64 ms
81,064 KB
testcase_25 AC 44 ms
65,592 KB
testcase_26 AC 59 ms
74,860 KB
testcase_27 AC 77 ms
89,392 KB
testcase_28 AC 59 ms
76,980 KB
testcase_29 AC 68 ms
85,148 KB
testcase_30 AC 57 ms
76,976 KB
testcase_31 AC 46 ms
67,756 KB
testcase_32 AC 44 ms
67,372 KB
testcase_33 AC 72 ms
88,212 KB
testcase_34 AC 42 ms
64,288 KB
testcase_35 AC 62 ms
80,648 KB
testcase_36 AC 59 ms
87,428 KB
testcase_37 AC 58 ms
88,704 KB
testcase_38 AC 74 ms
89,616 KB
testcase_39 AC 60 ms
89,304 KB
testcase_40 AC 65 ms
88,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    al, tl = [], []
    n = int(input())
    for j in input().split():
        i = int(j)
        al.append(i)
        tl.append(i)
    
    tl.sort()
    res = n
    for j in range(n-1, -1, -1):
        if(tl[res-1] == al[j]):
            res -= 1
    print(res)

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