U E D R , A S I H C RSS

Light More Light/문보창

2005/02/19 Accepted 0:00.613 448
나, 다. 론 문 다면 리는 것 같다. 과 메모리 많다. 보다 고리 다.

~cpp 
// no10110 - Light, more Light
#include <iostream>
#include <cmath>
using namespace std;
int main()
{	
	unsigned int n;
	while (cin >> n)
	{
		if (n == 0)
			break;
		if (int(sqrt(n)) == double(sqrt(n)))
			cout << "yes\n";
		else
			cout << "no\n";
	}
	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:38
Processing time 0.0074 sec