my this code seem to get AC but it only passesonly 1 test case what i a missing
#include <bits/stdc++.h>
using namespace std;
int countt(int n, int m)
{
int count[n + 1];
count[0] = 0;
for (int i = 1; i <= n; i++) {
if (i > m)
count[i] = count[i - 1] + count[i - m];
else if (i < m)
count[i] = 1;
else
count[i] = 2;
}
return count[n];
}
int main()
{
long t;
cin>>t;
while(t–){
int n,m;
cin>>n>>m;
cout <<countt(n, m)<<endl;
}
}