Submission #656224

#TimeUsernameProblemLanguageResultExecution timeMemory
656224Hydroxic_AcidLogičari (COCI21_logicari)C++17
0 / 110
0 ms212 KiB
#include <iostream> using namespace std; int N; int main(){ cin >> N; bool can = true; int originalN = N; while(N > 1){ if(N % 2){ can = false; break; } else N /=2; } if(can) cout << originalN / 2; else cout << -1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...