Advertisement
Saleh127

Untitled

May 2nd, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int a[1000],b[1000];
  4. int main()
  5. {
  6. int c,d,e,f,i,k,l;
  7. cin>>c;
  8. cin>>d>>e;
  9. for(i=d; i<=e; i++)
  10. {
  11. if(i%c==0)
  12. {
  13. printf("OK\n");
  14. return 0;
  15. }
  16. }
  17. printf("NG\n");
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement