Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
||||||||||
2025-07-29 06:25:42
i hate niggers. Niggers must go back to africa |
||||||||||
2025-05-07 04:07:28
nomuungoo bish gichinleguungoo |
||||||||||
2025-04-22 06:09:49
zza Last edit: 2025-04-22 06:10:46 |
||||||||||
2025-04-22 05:51:08
ochiroo huurhun Last edit: 2025-04-22 05:52:33 |
||||||||||
2025-04-16 11:14:53
#include<bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a; b = 1; while (b < a) { b = b * 2; } if (a == b) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }//yamateiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii |
||||||||||
2025-02-19 02:56:44
#include <iostream> #include <sstream> #include <string> #include <cstdlib> #include <cmath> using namespace std; // Headers string toString (double); int toInt (string); double toDouble (string); int main() { int a, b; cin >> a; b = 1; while (b < a) { b = b * 2; } if (a == b) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; } // The following implements type conversion functions. string toString (double value) { //int also stringstream temp; temp << value; return temp.str(); } int toInt (string text) { return atoi(text.c_str()); } double toDouble (string text) { return atof(text.c_str()); } |
||||||||||
2025-02-04 07:59:10
anu bo Last edit: 2025-02-07 04:14:21 |
||||||||||
2025-02-04 07:58:51
nigger anu |
||||||||||
2025-01-25 06:20:25
#include<iostream> using namespace std; int main () { int a; cin>>a; while(a%2==0){ a/=2; } if (a==1){ cout<<"YES"; } else { cout<<"NO"; } return 0; }//zzo amjilt |
||||||||||
2025-01-13 09:42:01
chi namaig buruu yvhiig harsnu |