結果
| 問題 |
No.1438 Broken Drawers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-16 23:03:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 177 ms / 2,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 30,108 KB |
| 最終ジャッジ日時 | 2024-11-23 12:38:06 |
| 合計ジャッジ時間 | 5,769 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
n = int(input())
A = list(map(int, input().split()))
ans = 0
i = 0
while i < n:
ans += 1
if i < n - 1:
if A[i] > A[i + 1]:
i += 1
i += 1
print(ans)