H - Overturned Numbers-坑爹水题

http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=61982


也很简单,很快就找到了答案 但是如果你找到10 11 的倒序是 01 11  这样输出是错的。

后台答案是倒序的 要11 01才对。。坑了我WA8次


#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <queue>
#include <algorithm>
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	if (n==1)
	{
		printf("10\n");
		return 0;
	}
	else
		if (n==2)
		{
			printf("60 80\n");
			return 0;
		}	else
			if (n==3)
			{
				printf("01 60 80\n");
				return 0;
			}	else
				if (n==4)
				{
					printf("11 01 60 80\n");
					return 0;
				}
				else
				{
					printf("Glupenky Pierre\n");
					return  0;
				}
}

 




你可能感兴趣的:(H - Overturned Numbers-坑爹水题)