Submission #715104

#TimeUsernameProblemLanguageResultExecution timeMemory
715104The_Cat_PersonLogičari (COCI21_logicari)C++14
0 / 110
1 ms212 KiB
#include <iostream> using namespace std; int n; int main() { if ((((((((((((n%2)%2)%2)%2)%2)%2)%2)%2)%2)%2)%2)%2==1)/*not power of two*/ { cout<<"-1"<<endl; } else /*power of 2*/ { cout<<n/2<<endl; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...