結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,440 KB
testcase_01 AC 32 ms
51,888 KB
testcase_02 AC 33 ms
53,152 KB
testcase_03 AC 31 ms
52,824 KB
testcase_04 AC 33 ms
52,364 KB
testcase_05 AC 32 ms
53,012 KB
testcase_06 AC 34 ms
52,460 KB
testcase_07 AC 33 ms
53,356 KB
testcase_08 AC 33 ms
52,516 KB
testcase_09 AC 36 ms
52,692 KB
testcase_10 AC 33 ms
52,952 KB
testcase_11 AC 34 ms
52,832 KB
testcase_12 AC 33 ms
52,328 KB
testcase_13 AC 34 ms
52,684 KB
testcase_14 AC 35 ms
52,656 KB
testcase_15 AC 34 ms
52,028 KB
testcase_16 AC 51 ms
72,680 KB
testcase_17 AC 56 ms
74,936 KB
testcase_18 AC 40 ms
62,596 KB
testcase_19 AC 56 ms
74,408 KB
testcase_20 AC 42 ms
64,880 KB
testcase_21 AC 42 ms
63,880 KB
testcase_22 AC 48 ms
71,352 KB
testcase_23 AC 43 ms
66,260 KB
testcase_24 AC 46 ms
70,468 KB
testcase_25 AC 39 ms
62,928 KB
testcase_26 AC 43 ms
68,388 KB
testcase_27 AC 48 ms
74,868 KB
testcase_28 AC 44 ms
68,544 KB
testcase_29 AC 48 ms
72,744 KB
testcase_30 AC 44 ms
68,132 KB
testcase_31 AC 38 ms
63,288 KB
testcase_32 AC 39 ms
62,816 KB
testcase_33 AC 48 ms
74,604 KB
testcase_34 AC 37 ms
62,108 KB
testcase_35 AC 45 ms
70,372 KB
testcase_36 AC 49 ms
74,584 KB
testcase_37 AC 49 ms
74,044 KB
testcase_38 AC 50 ms
73,804 KB
testcase_39 AC 52 ms
74,832 KB
testcase_40 AC 52 ms
77,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [int(i) for i in input().split()]
for i in range(a.index(max(a)), -1, -1):
    if a[i] == n:
        n -= 1
print(n)
0