【Henu ACM Round #13 A】 Hulk

【链接】 我是链接,点我呀:)
【题意】

在这里输入题意

【题解】

模拟。

【代码】

#include <bits/stdc++.h>
using namespace std;

int main(){
	#ifdef LOCAL_DEFINE
	    freopen("rush_in.txt", "r", stdin);
	#endif
	ios::sync_with_stdio(0),cin.tie(0);
    int n;
    cin >> n;
    cout <<"I hate ";
    for (int i= 2;i <= n;i++)
    if ( !(i&1)){
        cout <<"that I love ";
    }else{
        cout <<"that I hate ";
    }
    cout <<"it"<<endl;
	return 0;
}
原文地址:https://www.cnblogs.com/AWCXV/p/8334999.html