Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- int n;
- cin >> n;
- vector <int> v;
- while(v.size() < 1e5){
- int x = rand();
- if(x%2 == 1) continue;
- v.push_back(x);
- }
- for(auto x : v){
- if(x == n){
- cout << "moo";
- return 0;
- }
- }
- cout << "moo";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment