fork download
  1. #include <iostream>
  2. using namespace std;
  3. typedef long long ll;
  4. int main() {
  5. // your code goes here
  6. int t;
  7. cin>>t;
  8. while(t--){
  9. ll n,k;
  10. cin>>n>>k;
  11. if((n/k)%k)
  12. cout<<"YES\n";
  13. else
  14. cout<<"NO\n";
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 4312KB
stdin
3
5 1
4 2
10 10
stdout
NO
NO
YES