結果

問題 No.1438 Broken Drawers
ユーザー rlangevinrlangevin
提出日時 2023-01-11 08:52:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 86,452 KB
実行使用メモリ 106,692 KB
最終ジャッジ日時 2023-08-23 16:56:31
合計ジャッジ時間 5,325 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,112 KB
testcase_01 AC 67 ms
70,820 KB
testcase_02 AC 68 ms
70,960 KB
testcase_03 AC 69 ms
71,184 KB
testcase_04 AC 68 ms
71,136 KB
testcase_05 AC 67 ms
70,792 KB
testcase_06 AC 119 ms
106,540 KB
testcase_07 AC 110 ms
106,676 KB
testcase_08 AC 68 ms
70,820 KB
testcase_09 AC 67 ms
71,184 KB
testcase_10 AC 67 ms
70,732 KB
testcase_11 AC 74 ms
76,040 KB
testcase_12 AC 85 ms
86,284 KB
testcase_13 AC 95 ms
93,876 KB
testcase_14 AC 80 ms
82,104 KB
testcase_15 AC 106 ms
102,856 KB
testcase_16 AC 104 ms
102,816 KB
testcase_17 AC 110 ms
106,272 KB
testcase_18 AC 110 ms
106,344 KB
testcase_19 AC 108 ms
106,452 KB
testcase_20 AC 110 ms
106,352 KB
testcase_21 AC 110 ms
106,316 KB
testcase_22 AC 112 ms
106,604 KB
testcase_23 AC 113 ms
106,676 KB
testcase_24 AC 114 ms
106,616 KB
testcase_25 AC 115 ms
106,372 KB
testcase_26 AC 109 ms
106,480 KB
testcase_27 AC 107 ms
106,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
ans = 0
pre = -1
for a in A:
    if a > pre:
        ans += 1
        pre = a
    else:
        pre = -1
print(ans)
0