結果
| 問題 | No.1438 Broken Drawers |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-17 09:38:56 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 166 ms / 2,000 ms |
| コード長 | 169 bytes |
| 記録 | |
| コンパイル時間 | 390 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 34,240 KB |
| 最終ジャッジ日時 | 2026-03-28 11:19:39 |
| 合計ジャッジ時間 | 5,796 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
#yuki1438 n=int(input()) a=list(map(int,input().split())) res=n cnt=1 for i in range(n-1): if a[i]>a[i+1]: cnt+=1 else: res-=cnt//2 cnt=1 res-=cnt//2 print(res)