H---水題,h---

來源:互聯網
上載者:User

H---水題,h---

Description

胖哥自從當上公務員,贏取白富美,走向人生巔峰後,已經懶散到不想出題了,不僅如此,他連題目都懶得看了,現在他只會根據題目第一個單詞的長度判定這個題目的難度

 

如果題目的第一個單詞太長(長度大於3),他會說這題太難,不可能想的出來; 如果題目的第一個單詞太短(長度不大於3),他會說這題太簡單,懶得去想

 

現在給定一個題目,L想知道胖哥對於這道題會作出什麼反應

 

Input

首先是一個正整數cas,表示有cas組輸入,cas<=100

 

對於每組輸入,會給出一行,每行表示一個題目,每個題目只會由大寫字母,小寫字母或者空格構成,每行的第一個字元一定不會是空格,多個空格可能連續出現,每行最多200個字元

 

Output

對於每個題目,如果胖哥覺得這題太難,輸出"Too hard!",否則輸出"Too easy!"

 

Sample Input

12

If  the   day    is  done

If birds sing no more

If the wind has fiagged tired

Then draw the veil of darkness thick uponme

Even as thou hast wrapt the earth withThecoverlet of sleep and tenderly closed

The petals of the drooping lotus at dusk

From the travere

Whose sack of provisions is empty beforethevoyage is ended

Whose garment is torn and dustladen

Whose strength is exhausted remove shameandpoverty

And renew his life like a flower  under

The cover of thy kindly night

Sample Output

Too easy!

Too easy!

Too easy!

Too hard!

Too hard!

Too easy!

Too hard!

Too hard!

Too hard!

Too hard!

Too easy!

Too easy!

#include<iostream>#include<stdio.h>#include<string.h>using namespace std;int main(){    int n;    char a[10000];    cin>>n;    getchar();    while(n--)    {        gets(a);        char *p=strtok(a," ");        int len=strlen(p);        if(len>3)            printf("Too hard!\n");        else            printf("Too easy!\n");    }    return 0;}


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.