Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.10 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define debug
  5.  
  6. #define nl '\n'
  7. #define ll long long
  8. #define pii pair<int,int>
  9. #define pdd pair<double,double>
  10. #define ldouble long double
  11. const ll MOD = 1e9+7;
  12. const int INF = 0x7f7f7f7f;
  13. const ll INFLL = 0x7f7f7f7f7f7f7f7f;
  14.  
  15. inline char get(void) {
  16.     static char buf[100000], *S = buf, *T = buf;
  17.     if (S == T) {
  18.         T = (S = buf) + fread(buf, 1, 100000, stdin);
  19.         if (S == T) return EOF;
  20.     }
  21.     return *S++;
  22. }
  23. inline void read(int &x) {
  24.     static char c; x = 0; int sgn = 0;
  25.     for (c = get(); c < '0' || c > '9'; c = get()) if (c == '-') sgn = 1;
  26.     for (; c >= '0' && c <= '9'; c = get()) x = x * 10 + c - '0';
  27.     if (sgn) x = -x;
  28. }
  29.  
  30. struct Monkey {
  31.     int a, b;
  32.     void insert(int a, int b) {
  33.         this->a = a;
  34.         this->b = b;
  35.     }
  36.     string solve() {
  37.         if (a >= b) return "FunkyMonkeys";
  38.         else return "WeWillEatYou";
  39.     }
  40. };
  41.  
  42. int main() {
  43.     ios::sync_with_stdio(0);
  44.     cin.tie(0); cout.tie(0);
  45.  
  46.     Monkey monkeys;
  47.     int a, b;
  48.     int T;
  49.     read(T);
  50.     while (T--) {
  51.         read(a); read(b);
  52.         monkeys.insert(a, b);
  53.         cout << monkeys.solve() << nl;
  54.     }
  55.  
  56.     return 0;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement