CodeForces 705B Spider Man
2016-08-13 10:33
232 查看
水题。
#pragma comment(linker, "/STACK:1024000000,1024000000") #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> #include<vector> #include<map> #include<set> #include<queue> #include<stack> #include<iostream> using namespace std; typedef long long LL; const double pi=acos(-1.0),eps=1e-8; void File() { freopen("D:\\in.txt","r",stdin); freopen("D:\\out.txt","w",stdout); } inline int read() { char c = getchar(); while(!isdigit(c)) c = getchar(); int x = 0; while(isdigit(c)) { x = x * 10 + c - '0'; c = getchar(); } return x; } int n,sum; int main() { scanf("%d",&n); for(int i=1;i<=n;i++) { int x; scanf("%d",&x); sum=sum+x-1; if(sum%2==0) printf("2\n"); else printf("1\n"); } return 0; }
相关文章推荐
- CodeForces 705B Spider Man
- 【Codeforces Round #366 (Div. 2)】Codeforces 705B Spider Man
- CodeForces 705B Spider Man(蜘蛛侠游戏)
- CodeForces 705B Spider Man 思维游戏题
- 【模拟】Codeforces 705B Spider Man
- 【模拟】Codeforces 705B Spider Man
- codeforces 283A. Cows and Sequence [线段树-区间更新]
- Codeforces 466C Number of Ways
- CodeForces-626C-Block Towers
- codeforces 577B B. Modulo Sum(水题)
- Laptops CodeForces - 456A
- codeforces 851 D. Arpa and a list of numbers(前缀和+bruteforce)
- Necklace CodeForces - 613C
- codeforces 295E Yaroslav and Points (线段树)
- CodeForces 534B Covered Path 【贪心】
- codeforces 579A Raising Bacteria
- Codeforces 707D Persistent Bookcase(bitset+dfs)★
- CodeForces - 711D Directed Roads(dfs判环)
- codeforces 851 #432 div2 C Five Dimensional Points
- codeforces 34