-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path452A Eevee.cpp
51 lines (50 loc) · 1.17 KB
/
452A Eevee.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
author : MishkatIT
created : Saturday 2022-12-24-00.45.04
problem : A. Eevee
*/
#include<bits/stdc++.h>
#define fio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
int main()
{
fio;
int n;
cin >> n;
string str;
cin >> str;
vector<int> pos;
for (int i = 0; i < n; i++)
{
if(str[i] != '.')
pos.push_back(i);
}
vector<string> v {"vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"};
if(pos.size())
for (int i = 0; i < v.size(); i++)
{
int x = 0;
if(v[i].size() == n)
{
while(true)
{
if(v[i][pos[x]] == str[pos[x]])
{
if(x + 1 == pos.size())
{
cout << v[i];
return 0;
}
x++;
}
else
break;
}
}
}
if(n == 8)
cout << v[0];
else
cout << v[3];
return 0;
}