Chef wants to host some Division-3 contests. Chef has NN setters who are busy creating new problems for him. The ithith setter has made AiAi problems where 1≤i≤N1≤i≤N.
A Division-3 contest should have exactly KK problems. Chef wants to plan for the next DD days using the problems that they have currently. But Chef cannot host more than one Division-3 contest in a day.
Given these constraints, can you help Chef find the maximum number of Division-3 contests that can be hosted in these DD days?
for the above problem it shows my code wrong answer which i write below :
using namespace std;
while(t-- > 0)
while(n-- > 0)