結果

問題 No.1438 Broken Drawers
ユーザー etale.K3etale.K3
提出日時 2021-04-13 21:50:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 30,704 KB
最終ジャッジ日時 2023-09-12 13:03:14
合計ジャッジ時間 5,017 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,744 KB
testcase_01 AC 15 ms
7,712 KB
testcase_02 AC 16 ms
7,936 KB
testcase_03 AC 15 ms
7,824 KB
testcase_04 AC 15 ms
7,908 KB
testcase_05 AC 16 ms
7,920 KB
testcase_06 AC 136 ms
29,988 KB
testcase_07 AC 120 ms
29,908 KB
testcase_08 AC 15 ms
7,900 KB
testcase_09 AC 16 ms
7,844 KB
testcase_10 AC 15 ms
7,784 KB
testcase_11 AC 21 ms
9,108 KB
testcase_12 AC 57 ms
16,416 KB
testcase_13 AC 84 ms
22,064 KB
testcase_14 AC 44 ms
13,972 KB
testcase_15 AC 124 ms
29,240 KB
testcase_16 AC 118 ms
27,568 KB
testcase_17 AC 125 ms
29,792 KB
testcase_18 AC 127 ms
29,992 KB
testcase_19 AC 128 ms
30,312 KB
testcase_20 AC 130 ms
30,704 KB
testcase_21 AC 125 ms
29,936 KB
testcase_22 AC 130 ms
30,676 KB
testcase_23 AC 130 ms
29,824 KB
testcase_24 AC 130 ms
29,944 KB
testcase_25 AC 131 ms
29,912 KB
testcase_26 AC 131 ms
29,904 KB
testcase_27 AC 130 ms
29,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))

c = 0
i = 0

while i < N-1:
    if A[i] > A[i+1]:
        c += 1
        i += 1
    i += 1

print(N-c)
0