Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <vector>
- #include <algorithm>
- #include <cstdio>
- #include <math.h>
- #include <string>
- #include <stdio.h>
- #include <string.h>
- #include <string>
- #include <stdlib.h>
- #include <cmath>
- #include <iomanip>
- #include <fstream>
- #include <queue>
- using namespace std;
- int main(int argc, const char * argv[]) {
- int a,c;
- double b;
- cin>>a;
- b=log2(a);
- c=log2(a);
- if(b==c)cout<<"YES"<<endl;
- else cout<<"NO"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment