Tuesday, June 20, 2017

কম্পিউটার প্রোগ্রামিং বই সমস্যা - ৭

পূর্ণবর্গ সংখ্যা




soliution::


#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    long long int a,t,b;
    cin>>t;
    for(int i=0;i<t;i++)
    {
        cin>>a;
        b=sqrt(a);
        if((b*b)==a)
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
    return 0;
}
//you can use printf instead of cout && scanf instead of cin.

1 comment:

  1. Slot Review of Pragmatic Play - DrmCD
    Slot Review 구리 출장안마 of Pragmatic Play. Pragmatic Play. Slot 양주 출장샵 released in 2019. By. Pragmatic 통영 출장샵 Play. Slot #. 전라남도 출장마사지 Game Type. Progressive jackpot. Multiplier. Min - Max Bet. 양산 출장마사지

    ReplyDelete