Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7310 - Хоёрын зэрэгт

Өгөгдсөн тоо хоёрын зэрэгт мөн бол YES үгүй бол NO гэж хэвлэ.

Input

Бүхэл тоо өгөгдөнө.

Output

2-ын зэрэгт бол YES үгүй бол NO.

Example

Input:
16

Output:
YES

Нэмсэн:Bataa
Огноо:2013-01-11
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2023-11-20 08:20:24
#include <stdio.h>
using namespace std;
main(){
int s,b,i,a;
s=0;
b=0;
scanf("%d",&a);
for(i=1;i<=a;i++){
s=i*i;
if(a==s){
printf("YES");
b=b+1;
}
s=0;
}
if(b==0){
printf("NO");
}
} bayna muu gomo huul!!!

Last edit: 2023-11-20 08:20:47
2023-10-08 20:44:16
#include <stdio.h>

main()
{
int n,d=1;
scanf("%d",&n);
for(int i=2; i<=n; i=i*2)
{
d=i;
}
if(d==n)
{
printf("YES");
}
else
{
printf("NO");
}
}
2023-08-22 08:52:26
#include <iostream>
using namespace std;

int main() {

// your code here
int a, b, c, d, e, f, n, m;
cin>>a;

while(a>1){
if (a % 2 == 0)
a = a / 2;

else
a = a / 10;
}
if (a == 1)
cout<<"YES";
else
cout<<"NO";
return 0;
}
2023-06-24 15:12:07
#include <bits/stdc++.h>
using namespace std;

bool isInteger(double m)
{
int X = m;
double temp2 = m - X;
if (temp2 > 0) {
return false;
}
return true;
}

int main(){

float n,m;
scanf("%f",&n);
m=sqrt(n);

if(isInteger(m))
{
cout << "YES";
}
else
{
cout << "NO";
}
}
2023-05-02 02:57:13
gulp3
2023-03-13 06:09:10
#include<iostream>
using namespace std;
int main()
{
int a ;
cin >> a ;
while ( a>1 )
{
if ( a%2==0 )
a=a/2 ;
else
a=a/10 ;
}
if ( a==1 )
cout << "YES" ;
else
cout << "NO" ;
return 0;
}
huln nie d zoriulav
malaa
2023-03-04 10:59:59
#include <iostream>
using namespace std;
main()
{
int a,b;
cin>>a;
while(a>1)
{
b=a%2;
if(b==0);
a=a/2;
}
if(b==0) cout<<"YES";
else cout<<"NO";
}
Энэ код C++ болчихоод Spoj давахгүй юм. Ямар алдаа байна вэ? Туслаарай...
2023-02-28 06:52:05
Suvdaa huulahaa boli
2023-02-17 01:06:19
#include <stdio.h>

int main(void) {
int n,i;
scanf("%d",&n);
for(;n%2==0;n/=2)
i=n/2;
if(i==1)
printf("YES");
else
printf("NO");
}
sodolz
2023-02-11 04:24:17
munkhjin neger
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.