摘要: 恢复内容开始 第一题思维题 #include<iostream>using namespace std;int main(){ int n,flag; long long x; cin>>n; flag=0; while(n--){ cin>>x; if(x%2==1&&flag==0){ cout 阅读全文
posted @ 2018-07-06 11:10 .。 阅读(106) 评论(0) 推荐(0) 编辑
摘要: CodeForces - 651C Watchmen are in a danger and Doctor Manhattan together with his friend Daniel Dreiberg should warn them as soon as possible. There a 阅读全文
posted @ 2018-06-07 19:45 .。 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ int n,i; long long sum,x; cin>>n; sum=0; for(i=1;i<=n;i++){ cin>>x; sum=sum+x-1; if(sum%2){ cout<<"1 阅读全文
posted @ 2018-06-07 17:48 .。 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<stdio.h>#include<vector>using namespace std;const int maxn =10005;vector<int>reverse_post;vector<int>node[maxn];vector<int> 阅读全文
posted @ 2018-04-09 20:15 .。 阅读(113) 评论(0) 推荐(0) 编辑