1. 程式人生 > >Sonya and Exhibition

Sonya and Exhibition

test esp style -s ios mes cin codeforce amp

http://codeforces.com/group/1EzrFFyOc0/contest/1004/problem/B

 1 #include<iostream>
 2 #include<cstdio>
 3 #include<algorithm>
 4 #include<cstring>
 5 using namespace std;
 6 
 7 int main()
 8 {
 9     int n,m;
10     cin>>n>>m;
11     int a,b;
12     for(int i=1;i<=m;i++)
13 cin>>a>>b; 14 for(int i=1;i<=n;i++) 15 if(i&1) 16 cout<<1; //使每一個區間都最大,使1的數量盡量等於0的數量。 17 else 18 cout<<0; 19 }

Sonya and Exhibition