# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
3648 | 2013-08-31T07:17:40 Z | MiNu | Great Pow! (kriii1_G) | C++ | 0 ms | 0 KB |
#include <iostream> 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; }