建议降橙
查看原帖
建议降橙
1512108
QirErl楼主2025/7/21 09:20

纯暴力能a

for(int i = 2;i <= n;i++){
	sort(a + i - 2,a + n + 1);
	ans += (a[i] + a[i - 1]);
	a[i] += a[i - 1];		
}
2025/7/21 09:20
加载中...