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

A . Xu Xiake in Henan Province (签到) ( 2018-2019 ACM-ICPC, Asia Jiaozuo Regional Contest )

时间:2019-10-06 00:21:17      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:actions   马走日   examples   oca   contains   integer   with   second   action   

Shaolin Monastery, also known as the Shaolin Temple, is a Chan ("Zen") Buddhist temple in Dengfeng County, Henan Province. Believed to have been founded in the 55-th century CE, the Shaolin Temple is the main temple of the Shaolin school of Buddhism to this day.

Longmen Grottoes, are some of the finest examples of Chinese Buddhist art. Housing tens of thousands of statues of Buddha and his disciples, they are located 1212kilometres (7.57.5 mi) south of present-day Luoyang in Henan province.

White Horse Temple is, according to tradition, the first Buddhist temple in China, established in 6868 AD under the patronage of Emperor Ming in the Eastern Han dynasty capital Luoyang.

The Yuntai Mountain is situated in Xiuwu County, Jiaozuo, Henan Province. The Yuntai Geo Park scenic area is classified as an AAAAA scenic area by the China National Tourism Administration. Situated within Yuntai Geo Park, with a fall of 314 metres, Yuntai Waterfall is claimed as the tallest waterfall in China.

They are the most famous local attractions in Henan Province.

技术图片

Now it‘s time to estimate the level of some travellers. All travellers can be classified based on the number of scenic spots that have been visited by each of them.

  • A traveller that visited exactly 00 above-mentioned spot is a "Typically Otaku".
  • A traveller that visited exactly 11 above-mentioned spot is a "Eye-opener".
  • A traveller that visited exactly 22 above-mentioned spots is a "Young Traveller".
  • A traveller that visited exactly 33 above-mentioned spots is a "Excellent Traveller".
  • A traveller that visited all 44 above-mentioned spots is a "Contemporary Xu Xiake".

Please identify the level of a traveller.

Input

The input contains several test cases, and the first line contains a positive integer TT indicating the number of test cases which is up to 104104.

For each test case, the only one line contains four integers A1A1, A2A2, A3A3 and A4A4, where AiAi is the number of times that the traveller has visited the ii-th scenic spot, and 0A1,A2,A3,A41000≤A1,A2,A3,A4≤100. If AiAi is zero, it means that the traveller has never been visiting the ii-th spot.

Output

For each test case, output a line containing one string denoting the classification of the traveller which should be one of the strings "Typically Otaku", "Eye-opener", "Young Traveller", "Excellent Traveller" and "Contemporary Xu Xiake" (without quotes).

Example

Input
5
0 0 0 0
0 0 0 1
1 1 0 0
2 1 1 0
1 2 3 4
Output
Typically Otaku
Eye-opener
Young Traveller
Excellent Traveller
Contemporary Xu Xiake

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <map>
#include <vector>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
typedef long long lli;
using namespace std;
const int  mxn = 1e9;
multiset<int> mu;
    #define fi      first
    #define se      second
    #define pb      push_back
    #define pql     priority_queue<lli>
    #define pq      priority_queue<int>
    #define ok      return 0;
    #define oi(x)   cout<<x<<endl;
    #define os(str) cout<<string(str)<<endl;
using namespace std;
//multiset<int> :: iterator it ;
//int dir[6][3] = {0,0,1,0,0,-1,1,0,0,-1,0,0,0,1,0,0,-1,0};           //三维六向
//int dir[8][2] = {2,1,2,-1,-2,1,-2,-1,1,2,1,-2,-1,2,-1,-2};          //马走日
//int dir[4][2] = {1,0,-1,0,0,1,0,-1};                                //二维四向
//int dir[8][2]={1,0,1,1,1,-1,-1,0,-1,1,-1,-1,0,1,0,-1};              //全方位
#define en(xx) xx.begin(),xx.end()
#define rep(j,k) for (int i = j;   i < k;  i++)
#define per(j,k) for (int i = j-1; i >= k; i--)
  typedef pair < int, int > pii;
  typedef pair < lli, lli > pll;
  typedef vector < lli > vl;
  typedef vector < int > vi;

int main()
{
    int t,a,b,c,d;
    cin>>t;
    while(t--)
    {
        b=0;
        for(int i=0;i<4;i++)
        {
            cin>>a;
            if(a>0)
                b++;
        }
        if(!b)
            cout<<"Typically Otaku"<<endl;
        else if(b==1)
            cout<<"Eye-opener"<<endl;
        else if(b==2)
            cout<<"Young Traveller"<<endl;
        else if(b==3)
            cout<<"Excellent Traveller"<<endl;
        else if(b==4)
            cout<<"Contemporary Xu Xiake"<<endl;
    }
}

 

A . Xu Xiake in Henan Province (签到) ( 2018-2019 ACM-ICPC, Asia Jiaozuo Regional Contest )

标签:actions   马走日   examples   oca   contains   integer   with   second   action   

原文地址:https://www.cnblogs.com/Shallow-dream/p/11626034.html

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