简单循环,上代码
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int n;
cin >> n;
if (n == 1)
cout << "I hate it";
else
{
cout << "I hate ";
for (int i = 2; i <= n; i++)
{
if (i % 2 == 0)
cout << "that I love ";
else
cout << "that I hate ";
}
cout << "it";
}
return 0;
}