题目链接:http://codeforces.com/contest/452/problem/A
提示:模拟题,水
#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
char s[20];
int main()
{
int m;
while(cin>>m>>s)
{
int len=strlen(s);
if((s[0]=='j'||s[0]=='.')&&(s[1]=='o'||s[1]=='.')&&(s[2]=='l'||s[2]=='.')
&&(s[3]=='t'||s[3]=='.')&&len==7)
puts("jolteon");
else if((s[0]=='v'||s[0]=='.')&&(s[1]=='a'||s[1]=='.')&&(s[2]=='p'||s[2]=='.')
&&(s[3]=='o'||s[3]=='.')&&(s[4]=='r'||s[4]=='.')&&len==8)
puts("vaporeon");
else if((s[0]=='f'||s[0]=='.')&&(s[1]=='l'||s[1]=='.')&&(s[2]=='a'||s[2]=='.')
&&(s[3]=='r'||s[3]=='.')&&len==7)
puts("flareon");
else if((s[0]=='e'||s[0]=='.')&&(s[1]=='s'||s[1]=='.')&&(s[2]=='p'||s[2]=='.')
&&len==6)
puts("espeon");
else if((s[0]=='u'||s[0]=='.')&&(s[1]=='m'||s[1]=='.')&&(s[2]=='b'||s[2]=='.')
&&(s[3]=='r'||s[3]=='.')&&len==7)
puts("umbreon");
else if((s[0]=='l'||s[0]=='.')&&(s[1]=='e'||s[1]=='.')&&(s[2]=='a'||s[2]=='.')
&&(s[3]=='f'||s[3]=='.')&&len==7)
puts("leafeon");
else if((s[0]=='g'||s[0]=='.')&&(s[1]=='l'||s[1]=='.')&&(s[2]=='a'||s[2]=='.')
&&(s[3]=='c'||s[3]=='.')&&len==7)
puts("glaceon");
else if((s[0]=='s'||s[0]=='.')&&(s[1]=='y'||s[1]=='.')&&(s[2]=='l'||s[2]=='.')
&&(s[3]=='v'||s[3]=='.')&&len==7)
puts("sylveon");
}
return 0;
}