結果
問題 | No.1438 Broken Drawers |
ユーザー | marroncastle |
提出日時 | 2021-03-26 21:52:06 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 1,151 ms |
コンパイル使用メモリ | 86,992 KB |
実行使用メモリ | 107,592 KB |
最終ジャッジ日時 | 2023-08-19 08:04:57 |
合計ジャッジ時間 | 4,962 ms |
ジャッジサーバーID (参考情報) |
judge9 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,588 KB |
testcase_01 | AC | 73 ms
71,260 KB |
testcase_02 | AC | 75 ms
71,364 KB |
testcase_03 | AC | 73 ms
71,232 KB |
testcase_04 | AC | 74 ms
71,156 KB |
testcase_05 | AC | 72 ms
71,436 KB |
testcase_06 | AC | 117 ms
107,240 KB |
testcase_07 | AC | 117 ms
106,912 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
ソースコード
N = int(input()) A = list(map(int, input().split())) ans = (N+1)//2 for i in range(0,N-1,2): if i+2<N: if A[i]<A[i+1]<A[i+2]: ans += 1 elif A[i]<A[i+1]: ans += 1 print(ans)