返回小组 开始 2026-05-21 13:40:00

北清初二期末测试

结束 2026-05-21 17:20:00
Contest is over.
当前 2026-05-23 17:52:33

a

include <bits/stdc++.h>

using namespace std; int h=[100005]; int main() { int n; cin>>n; for(int i=1;i<=n;i++){

cin>>h[i];

}int l=1,r=n; int ans=; while(l<r){ int x=r-l; }int y=min(h[i],h[r]){ ans=max(ans,x*y); if(h[l]>h[r]){

	r--;
	else
	l++;
}

}cout<<ans; return 0; }


XXXDG  •  2天前

比赛已结束。