Submission #3705

# Submission time Handle Problem Language Result Execution time Memory
3705 2013-08-31T07:45:42 Z hhosu107 Great Pow! (kriii1_G) C++
0 / 1
0 ms 1088 KB
#include <stdio.h>

long long int a , k;
long long int t;

int main()
{
	scanf("%lld %lld", &a, &k);
	if(a % 2 == 1) printf("%d\n", a);
	else if(k % 2 == 0) printf("%d\n", a);
	else printf("1\n");
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Incorrect 0 ms 1088 KB Output isn't correct
3 Halted 0 ms 0 KB -