# |
Author |
Problem |
Lang |
Verdict |
Time |
Memory |
Sent |
Judged |
|
19873307 |
Practice:
kefaa |
705B
- 22
|
GNU C++11
|
Accepted
|
468 ms
|
2036 KB
|
2016-08-14 20:40:40 |
2016-08-14 20:40:40 |
|
#include<iostream>
main(){int n,x,r=0;std::cin>>n;for(;n--;){std::cin>>x;r^=x&1^1;std::cout<<2-r<<' ';}}
Click to see test details