Guest User

Untitled

a guest
May 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.  
  7. int t;
  8. cin >> t;
  9. int n;
  10. cin >>n;
  11. int i;
  12. for (i=0;i<t;i++)
  13. {
  14. if (n>10000)
  15. return 0;
  16. else
  17. {
  18. if (n%127==0)
  19. cout << "Yes";
  20. else
  21. cout << "No";
  22. }
  23. }
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment