
CodeForces
漂流瓶终结者
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #579 (Div. 3)
A. Circle of Students题意:给你一个长度为n的序列(成环),问该序列是否满足从某一位置开始顺时针或逆时针走是有序递增的思路:找到1的下标,分别判从1的位置开始顺时针走或逆时针走,能否走到n#include<bits/stdc++.h>using namespace std;#define inc(i,x,n) for(register int i=...原创 2019-09-20 17:43:15 · 160 阅读 · 0 评论 -
Codeforces Round #552 (Div. 3)
A. Restoring Three Numbers题意:给出4个数,它们分别是 a+b,a+c,b+c,a+b+c,求a,b,c的值思路:排序,前三个数两两相加减去第四个数可依次求得a,b,c的值代码:#include<bits/stdc++.h>using namespace std;const int N=200;int main(){ int ...原创 2019-05-27 22:09:55 · 235 阅读 · 0 评论 -
Codeforces Round #578 (Div. 2)
A. Hotelier模拟#include<cstdio>#include<cstring>#include<set>#include<algorithm>using namespace std;const int N=1e6+5;char str[N];set<int> s;int main(){ in...原创 2019-09-20 17:42:47 · 156 阅读 · 0 评论 -
Codeforces Round #553 (Div. 2)
A. Maxim and Biology#include<iostream>#include<cstring>#include<cstdio>#include<algorithm>using namespace std;int route[26][26];void solve() { for(int u = 0; u <...原创 2019-09-21 09:50:10 · 210 阅读 · 0 评论 -
Educational Codeforces Round 65 (Rated for Div. 2)
A. Telephone Number思路:字符串长度小于11或长度为11时首位不为8或长度>11且第一个8的位置不<=n-11的情况都为No#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N = 3e5 + 5;int main() { ios::...原创 2019-09-22 18:54:03 · 168 阅读 · 0 评论