Submission #715096

#TimeUsernameProblemLanguageResultExecution timeMemory
715096The_Cat_PersonLogičari (COCI21_logicari)C++14
0 / 110
0 ms212 KiB
#include <iostream> using namespace std; int n; int main() { if (n%2==1) { cout<<"-1"<<endl; } else if ((((n%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...