結果
問題 |
No.1438 Broken Drawers
|
ユーザー |
|
提出日時 | 2021-07-17 09:38:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 145 ms / 2,000 ms |
コード長 | 169 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 30,300 KB |
最終ジャッジ日時 | 2024-07-06 21:10:08 |
合計ジャッジ時間 | 4,598 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)