# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
3652 | MiNu | Great Pow! (kriii1_G) | C++98 | 0 ms | 1672 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |