mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 705B.cpp
This commit is contained in:
parent
38a800c66d
commit
102ea8ff02
18
Codeforces/705B.cpp
Normal file
18
Codeforces/705B.cpp
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
|
using namespace std;
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
long long sum=0;
|
||||||
|
int n;
|
||||||
|
scanf("%d",&n);
|
||||||
|
int tmp;
|
||||||
|
for(int i=0;i<n;i++)
|
||||||
|
{
|
||||||
|
scanf("%d",&tmp);
|
||||||
|
sum=sum+tmp-1;
|
||||||
|
printf("%d\n",2-!!(sum&1));
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user