rengetsu

Codeforces_705A

Aug 2nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. //Codeforces Round 705A
  2. #include <string>
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7.     int n;
  8.     cin >> n;
  9.     for(int i=0;i<n;i++)
  10.     {
  11.         if(i%2==0){cout << "I hate ";}
  12.         if(i%2!=0){cout << "I love ";}
  13.         if(i==n-1){cout << "it";}
  14.         if(i!=n-1){cout << "that ";}
  15.     }
  16.     return 0;
  17. }
Add Comment
Please, Sign In to add comment