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
2024-12-06 07:33:08
sar
2024-11-26 23:52:57
#include <iostream>
using namespace std;

bool isPowerOfTwo(int n) {
return n > 0 && (n & (n - 1)) == 0;
}

int main() {
int n;
cin >> n;

if (isPowerOfTwo(n)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}

return 0;
}
//ryuu bol gci
2024-05-25 13:32:39
import java.util.Scanner;

public class main {

public static void main(String[] args) {
System.out.println("too oruul!");
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
while(n>1){
if(n%2==0){
n = n/2;
}else{
n = 0;
}
}
if(n==1){
System.out.println("yes");
}else{
System.out.println("no");
}

//System.out.println("2 iin zerg-"+s);

}
}
2024-05-25 12:52:11


Last edit: 2024-05-25 12:52:36
2024-05-22 08:19:18
"Virtue without violence is impotent, while violence without virtue is blind."
Virtue - To show moral, and be humane.
Impotent - Powerless, Helpless, Not powerful.
2024-05-22 08:16:29
"Only the dead have seen the end of war."
2024-05-22 08:16:02
"Those who don't know history are doomed to repeat it."
Doomed- Cursed or Forced to do something bad.

Last edit: 2024-05-22 08:20:18
2024-05-22 08:04:54
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";
2024-03-24 14:12:39
UNDRAM UNDRAL TSETSEIGEN TSELMEG ENKHTUVSHIN BUYANKHISHIG GEGEEN BOLOR UYANGOO MUNHJIN GUNSAR MUNGUNSHAGAI SHIJIRBAT LUVSANDORJ TEMUULEN TUGSBILEGT TUGULDUR TENUUN SANDUIJAV TUGS-ERDENE BILGUUNTUGS BAYRT-OD AMARTUVSHIN NOMUN - COMMON COLD
2024-01-20 18:02:08
#include<stdio.h>
main()
{
int n;
scanf("%d",&n);

while(n>1)
{
if (n%2==0) n=n/2;
else n=0;
}
if(n==1) printf("YES");
else printf("NO");
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.