結果

問題 No.365 ジェンガソート
ユーザー hang_hang_clnhang_hang_cln
提出日時 2018-06-11 00:48:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 19,744 KB
最終ジャッジ日時 2023-09-13 02:50:40
合計ジャッジ時間 3,723 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,904 KB
testcase_01 AC 16 ms
7,848 KB
testcase_02 AC 16 ms
7,972 KB
testcase_03 AC 16 ms
7,840 KB
testcase_04 AC 17 ms
7,868 KB
testcase_05 AC 17 ms
7,896 KB
testcase_06 AC 17 ms
7,840 KB
testcase_07 AC 17 ms
7,848 KB
testcase_08 AC 17 ms
7,756 KB
testcase_09 AC 17 ms
7,812 KB
testcase_10 AC 17 ms
7,832 KB
testcase_11 AC 16 ms
7,796 KB
testcase_12 AC 16 ms
7,832 KB
testcase_13 AC 17 ms
7,844 KB
testcase_14 AC 16 ms
7,828 KB
testcase_15 AC 17 ms
7,840 KB
testcase_16 AC 76 ms
16,948 KB
testcase_17 AC 80 ms
18,836 KB
testcase_18 AC 22 ms
9,140 KB
testcase_19 AC 72 ms
18,772 KB
testcase_20 AC 32 ms
11,792 KB
testcase_21 AC 34 ms
10,544 KB
testcase_22 AC 79 ms
16,276 KB
testcase_23 AC 55 ms
13,232 KB
testcase_24 AC 74 ms
15,824 KB
testcase_25 AC 34 ms
10,544 KB
testcase_26 AC 62 ms
14,348 KB
testcase_27 AC 96 ms
19,536 KB
testcase_28 AC 64 ms
14,660 KB
testcase_29 AC 85 ms
17,796 KB
testcase_30 AC 63 ms
14,884 KB
testcase_31 AC 38 ms
11,164 KB
testcase_32 AC 37 ms
11,120 KB
testcase_33 AC 93 ms
19,144 KB
testcase_34 AC 29 ms
10,048 KB
testcase_35 AC 72 ms
16,392 KB
testcase_36 AC 65 ms
19,600 KB
testcase_37 AC 93 ms
19,736 KB
testcase_38 AC 93 ms
19,740 KB
testcase_39 AC 81 ms
19,744 KB
testcase_40 AC 85 ms
19,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
xs = list(map(int,input().split()))
y = 0
z = 0
for x in xs:
    if y < x:
        y = x
    else:
        z = max(z, x)
ans = 0
for x in xs:
    if x <= z:
        ans += 1
print(ans)
0