A - Xu Xiake in Henan Province Gym - 102028A(2018焦作区域赛)

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 5-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 12 kilometres (7.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 68 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 0 above-mentioned spot is a “Typically Otaku”.
A traveller that visited exactly 1 above-mentioned spot is a “Eye-opener”.
A traveller that visited exactly 2 above-mentioned spots is a “Young Traveller”.
A traveller that visited exactly 3 above-mentioned spots is a “Excellent Traveller”.
A traveller that visited all 4 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 T indicating the number of test cases which is up to 104.

For each test case, the only one line contains four integers A1, A2, A3 and A4, where Ai is the number of times that the traveller has visited the i-th scenic spot, and 0≤A1,A2,A3,A4≤100. If Ai is zero, it means that the traveller has never been visiting the i-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 <cstdio>
#include <iostream>
#include <cstring>
using namespace std;

int main()
{
    int T;cin >> T;
    while(T--)
    {
        int ans = 0;
        for(int i = 1;i <= 4;i++)
        {
            int t;scanf("%d",&t);
            if(t)
            {
                ans++;
            }
        }
        if(ans == 0)
        {
            printf("Typically Otaku\n");
        }
        else if(ans == 1)
        {
            printf("Eye-opener\n");
        }
        else if(ans == 2)
        {
            printf("Young Traveller\n");
        }
        else if(ans == 3)
        {
            printf("Excellent Traveller\n");
        }
        else if(ans == 4)
        {
            printf("Contemporary Xu Xiake\n");
        }
    }
    return 0;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值