poj 3210

这道题虽然是道YY题,就两行代码,但挺锻炼思维的

#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
	int n;
	while(cin>>n&&n)
	{
		if(n%2==0) cout<<"No Solution!"<<endl;
		else cout<<n-1<<endl;
	}
	return 0;
}


posted @ 2013-03-24 14:03  LJ_COME!!!!!  阅读(103)  评论(0编辑  收藏  举报