http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=35&page=show_problem&p

605 단어
//         :
//                           
//       yes    no
//            ,          
//               ,         。\

#include<stdio.h>
#include<math.h>
int main()
{
   unsigned int n;
    while(scanf("%d",&n),n)
    {
        int test=(int)sqrt(n);
      //  printf("%d
",test*test); if(test*test==n) printf("yes
"); else printf("no
"); } return 0; }

좋은 웹페이지 즐겨찾기