摘要: https://codeforces.com/contest/1313/problem/C1 // 构造一个单顶(峰)的数组,并且sum最大 // O(N^2) #include<bits/stdc++.h> using namespace std; int main() { int n; vect 阅读全文
posted @ 2022-03-22 00:26 墨鳌 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 题目链接 https://codeforces.com/problemset/problem/1654/C 切蛋糕,判断数组是否为合法的切割中间状态 #include<bits/stdc++.h> using namespace std; typedef long long ll; bool ok( 阅读全文
posted @ 2022-03-22 00:03 墨鳌 阅读(107) 评论(0) 推荐(0) 编辑