码迷,mamicode.com
首页 > 其他好文 > 详细

【Henu ACM Round #13 A】 Hulk

时间:2018-01-23 13:08:15      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:++   include   amp   col   int   cout   problem   namespace   sync   

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


在这里输入题意

【题解】


模拟。

【代码】

#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;
}

【Henu ACM Round #13 A】 Hulk

标签:++   include   amp   col   int   cout   problem   namespace   sync   

原文地址:https://www.cnblogs.com/AWCXV/p/8334999.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!