Monday, August 8, 2016

Published August 08, 2016 by with 0 comment

Codeforces 705A Hulk Solution

#include<cstdio>
using namespace std;

int main()
{
    int n;
    while (scanf("%d",&n)!=EOF)
    {
        for (int i=1;i<=n;i++)
        {
            if (i%2) printf("I hate ");
            else printf("I love ");
            if (i==n) printf("it\n");
            else printf("that ");
        }
    }
    return 0;
}
      edit

0 comments:

Post a Comment