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