Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Bitwise - Check power of 2 or not
//g++ 5.4.0 #include <iostream> int main() { int num; std::cin >> num; if(num && !(num & (num - 1))) std::cout << "Power of 2"; else std::cout << "Not power of 2"; }
run
|
edit
|
history
|
help
0
search_n algorithm
macros
simple serialization
runtime template mode processor
Square of maximum
std::function ambiguity gcc
Problema Siruri
uuuu
parallel_for_each
alternate list