using namespace std;
unsigned long int count=0,i;
What is the question? (any link to the question)
You can use (scanf and printf) or (fast I/O) for this program and also while taking input a[i] calculate a[i]%k. For more clarification give the link of the question.
link of the question…
Please post a link to your question
Post it along with your question.