제출 #3705

#제출 시각아이디문제언어결과실행 시간메모리
3705hhosu107Great Pow! (kriii1_G)C++98
0 / 1
0 ms1088 KiB
#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 timeMemoryGrader output
Fetching results...