Wrong Answer?

My Program:-

#include<stdio.h>
main()
{
	int i,j,y=1;
	long long N,K;
	
	scanf("%d",&N);
	int A[N];
	scanf("%d",&K);
	if(N>K)
	{
		exit(-1);
	}
	for(j=0;j<N;j++)
	{
		scanf("%d",&A[j]);
	}
	for(i=N;i>=1;i=i-K)
	{
		
		y=y*i;
	}
	printf("%d",y);
        }

Its not a cakewalk Q. Its easy-medium. If you are new to programming, skip this for now, it requires an algo of category “Dynamic Programming” to solve.

@vijju123 @knightware101 lol that’s true look at this

//