My issue
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
for(int i=0;i<t;i++){
int n,k;
cin>>n>>k;
int product=1;
for(int i=1;i<k+1;k++){
product=product*i;
}
if(n>=product){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
return 0;
}
Problem Link: BALLBOX Problem - CodeChef