Sonya and Exhibition

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 }

猜你喜欢

转载自www.cnblogs.com/thunder-110/p/9276977.html
今日推荐