Submission #3652

#TimeUsernameProblemLanguageResultExecution timeMemory
3652MiNuGreat Pow! (kriii1_G)C++98
1 / 1
0 ms1672 KiB
#include <iostream> #include <cstdio> using namespace std; int solve(int a, int k) { if ( k == 0 ) return a; if ( a % 2 == 0 ) return 1; return a; } int main() { int a, k; scanf("%d %d", &a, &k); printf("%d\n", solve(a, k)); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...