2020年1月19日

Codeforces Round #613 (Div. 2) (A-E)

摘要: A略 直接求和最大的子序列即可(注意不能全部选中整个子序列) or #include<bits/stdc++.h> using namespace std; void solve(){ int n; cin>>n; vector<int> a(n); vector<long long> sum(n+ 阅读全文

posted @ 2020-01-19 21:18 欣崽 阅读(226) 评论(0) 推荐(0)

Educational Codeforces Round 79 (Rated for Div. 2) Finished (A-D)

摘要: 如果最大值比剩余两个加起来的总和+1还大,就是NO,否则是YES #include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; while(T--){ vector<int> a(3); for(int i=0;i<3 阅读全文

posted @ 2020-01-19 12:23 欣崽 阅读(266) 评论(0) 推荐(0)

导航