Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define ll long long
- #define _test int _TEST; cin>>_TEST; while(_TEST--)
- #define ff first
- #define ss second
- #define pb push_back
- int main()
- {
- vector<int> v(8);
- for(auto &e: v) cin>>e;
- int f = is_sorted(v.begin(), v.end());
- for(auto e: v)
- f &= (e>=100 && e<=675 && e%25==0);
- if(f) cout<<"Yes\n";
- else cout<<"No\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment