Submission #28902881


Source Code Expand

#include<iostream>
#include<sstream>
#include<iomanip>
#include<cstdlib>
#include<algorithm>
#include<vector>
#include<map>
#include<cmath>
#include<string>
#include<numeric>
#include<queue>
#include<set>
#include<utility>
#include<bitset>

#define rep(i,p) for(long long int i=0;i<p;i++)
#define reep(i,p) for(long long int i=1;i<=p;i++)
#define ll long long
#define MOD 998244353
#define INF 9223372036854775800
#define pi 3.14159265359

using namespace std;

int main(){

ll int N;
cin >> N ;

ll int b = 1;
rep(i,31){
	b *= 2;
}
if( N >= -b && N < b ){
	cout << "Yes" << endl;
}
else{
	cout << "No" << endl;
}











	return 0;

}

Submission Info

Submission Time
Task A - Not Overflow
User ichi5_ohagi
Language C++ (Clang 10.0.0)
Score 100
Code Size 640 Byte
Status AC
Exec Time 6 ms
Memory 3076 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt
Case Name Status Exec Time Memory
example_00.txt AC 3 ms 3040 KiB
example_01.txt AC 2 ms 2988 KiB
example_02.txt AC 5 ms 3036 KiB
hand_00.txt AC 2 ms 3048 KiB
hand_01.txt AC 2 ms 3036 KiB
hand_02.txt AC 2 ms 3076 KiB
hand_03.txt AC 6 ms 2988 KiB
hand_04.txt AC 2 ms 3028 KiB
hand_05.txt AC 2 ms 3040 KiB
hand_06.txt AC 2 ms 2892 KiB