Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int t;
- cin >> t;
- int n;
- cin >>n;
- int i;
- for (i=0;i<t;i++)
- {
- if (n>10000)
- return 0;
- else
- {
- if (n%127==0)
- cout << "Yes";
- else
- cout << "No";
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment