首页 > 其他 > 详细

Sonya and Exhibition

时间:2018-07-07 13:23:18      阅读:134      评论:0      收藏:0      [点我收藏+]

 

 

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

原文:https://www.cnblogs.com/thunder-110/p/9276977.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!