CodeForces 660B Seating On Bus

模拟。

#include<cstdio>
#include<cstring>
#include<cmath>
#include<vector>
#include<algorithm>
using namespace std;

int main()
{
    int n,m;
    scanf("%d%d",&n,&m);
    for(int i=1;i<=2*n;i++)
    {
        if(2*n+i<=m) printf("%d ",2*n+i);
        if(i<=m) printf("%d ",i);
    }
    printf("\n");
    return 0;
}

 

posted @ 2016-04-24 19:21  Fighting_Heart  阅读(138)  评论(0编辑  收藏  举报