BNU10806:请在此处签到

每年圣诞,ZUN都会邀请很多人到幻想乡举行联欢,今年也不例外。在联欢前,所有人需要在自己的昵称旁签到(签全名),以示出席。然后ZUN 会把大家的签到表保存下来作为纪念,以激励来年努力工作。
 
昵称:昵称为一行字符串,中间无空格,长度请自行斟酌。昵称可以是全称的简写,比如蕾米利亚斯卡雷特=>蕾米,也可以是别人对此人的称呼比如Jichuan Lu=>luolilu,也可以是对此人属性的某种暗示比如Houraisan Kaguya=>NEET,或者纯粹是对原名的恶搞,Alice Margatroid=>爱丽丝·威震天。
 
下面给你ZUN制作的签到表(昵称或称号),请你输出大家的签名(全名)。Hint里给出了所有可能出现在签到表里的昵称和对应全名。

Input

一组测试数据,第一行一个整数n,n很小,真的很小,表示接下来有n个人物的昵称。
接下来n行,每一行表示一个人物的昵称。昵称完全符合上述要求,保证输入数据的昵称一定出现在列表中。
 

Output

输出有n行。
对于每一个人物的昵称,输出对应全名。全名内可以有空格。
 

Sample Input

12

Sugaosugao

Luolilu

Lisy

CS

OO

GodZhuo

BigGodKun

PerfectElegantHungryGhostlyGirl

Remi

Furan

Mko

Player2
 

Sample Output

Suyi Wang

Jichuan Lu

Siyuan Li

Shan Chen

Siliang Zhang

Yue Zhuo

Kun Huang

Saigyouji Yuyuko

Remiria Scarlet

Flandre Scarlet

Hinanai Tenshi

Kotiya Sanae

 

Hint

以下是所有ZUN可能邀请到的人物的昵称和对应名字,共31个。分两种方式列出,请选择合适你的一种格式进行对比解题。
 
格式1:
昵称:
"Sugaosugao", "Luolilu", "Lisy", "CS", "OO", "GodZhuo", "BigGodKun", "Orzyidashenniuwusuobuneng", "PerfectElegantHungryGhostlyGirl", "Remi", "Furan", "Mko", "Player2", "Megatron", "NuclearMissile", "PAD", "Piemu", "Pachi", "China", "Gundam", "9", "Yukari", "Watermelon", "LittleRib", "TrickyRabbit", "MedicineCan", "NEET", "GuanxiReporter", "SpinningGod", "LvBaMaiden", "10"
全名:
"Suyi Wang", "Jichuan Lu", "Siyuan Li", "Shan Chen", "Siliang Zhang", "Yue Zhuo", "Kun Huang", "Yi Chao", "Saigyouji Yuyuko", "Remiria Scarlet", "Flandre Scarlet", "Hinanai Tenshi", "Kotiya Sanae", "Alice Margatroid", "Reiuzi Utsuho", "Izayoi Sakuya", "Konpaku Youmu", "Pachouli Knowledge", "Hong Meiling", "Yasako Kanako", "Chiruno", "Yakumo Yukari", "Ibuki Suika", "Mystia Lorelei", "Inaba Tewi", "Udongein Inaba Reisen", "Houraisan Kaguya", "Syameimaru Aya", "Kagiyama Hina", "Kawashiro Nitori", "Rumia"
 
格式2:
昵称:
全名:
Sugaosugao
Suyi Wang
Luolilu
Jichuan Lu
Lisy
Siyuan Li
CS
Shan Chen
OO
Siliang Zhang
GodZhuo
Yue Zhuo
BigGodKun
Kun Huang
Orzyidashenniuwusuobuneng
Yi Chao
PerfectElegantHungryGhostlyGirl
Saigyouji Yuyuko
Remi
Remiria Scarlet
Furan
Flandre Scarlet
Mko
Hinanai Tenshi
Player2
Kotiya Sanae
Megatron
Alice Margatroid
NuclearMissile
Reiuzi Utsuho
PAD
Izayoi Sakuya
Piemu
Konpaku Youmu
Pachi
Pachouli Knowledge
China
Hong Meiling
Gundam
Yasako Kanako
9
Chiruno
Yukari
Yakumo Yukari
Watermelon
Ibuki Suika
LittleRib
Mystia Lorelei
TrickyRabbit
Inaba Tewi
MedicineCan
Udongein Inaba Reisen
NEET
Houraisan Kaguya
GuanxiReporter
Syameimaru Aya
SpinningGod
Kagiyama Hina
LvBaMaiden
Kawashiro Nitori
10
Rumia
 
 
直接将提示中给出的表打出来即可
 
#include <stdio.h>

#include <algorithm>

#include <string.h>

using namespace std;



char ni[40][50] = {"Sugaosugao", "Luolilu", "Lisy", "CS", "OO", "GodZhuo", "BigGodKun", "Orzyidashenniuwusuobuneng", "PerfectElegantHungryGhostlyGirl", "Remi", "Furan", "Mko", "Player2", "Megatron", "NuclearMissile", "PAD", "Piemu", "Pachi", "China", "Gundam", "9", "Yukari", "Watermelon", "LittleRib", "TrickyRabbit", "MedicineCan", "NEET", "GuanxiReporter", "SpinningGod", "LvBaMaiden", "10"};

char cheng[40][50] = {"Suyi Wang", "Jichuan Lu", "Siyuan Li", "Shan Chen", "Siliang Zhang", "Yue Zhuo", "Kun Huang", "Yi Chao", "Saigyouji Yuyuko", "Remiria Scarlet", "Flandre Scarlet", "Hinanai Tenshi", "Kotiya Sanae", "Alice Margatroid", "Reiuzi Utsuho", "Izayoi Sakuya", "Konpaku Youmu", "Pachouli Knowledge", "Hong Meiling", "Yasako Kanako", "Chiruno", "Yakumo Yukari", "Ibuki Suika", "Mystia Lorelei", "Inaba Tewi", "Udongein Inaba Reisen", "Houraisan Kaguya", "Syameimaru Aya", "Kagiyama Hina", "Kawashiro Nitori", "Rumia"};

char str[50];



int main()

{

    int n,i;

    scanf("%d",&n);

    while(n--)

    {

        scanf("%s",str);

        for(i = 0;i<31;i++)

        {

            if(!strcmp(str,ni[i]))

            {

                printf("%s\n",cheng[i]);

                break;

            }

        }

    }



    return 0;

}


 

你可能感兴趣的:(B)