codeforces-scrape

Codeforces scraped problems and editorials
git clone git://git.laack.co/codeforces-scrape.git
Log | Files | Refs | README

452A.md (1717B)


      1 Source: https://codeforces.com/problemset/problem/452/A
      2 
      3 A. Eevee
      4 
      5 time limit per test
      6 
      7 1 second
      8 
      9 memory limit per test
     10 
     11 256 megabytes
     12 
     13 input
     14 
     15 stdin
     16 
     17 output
     18 
     19 stdout
     20 
     21 You are solving the crossword problem K from IPSC 2014. You solved all the clues except for one: who does Eevee evolve into? You are not very into pokemons, but quick googling helped you find out, that Eevee can evolve into eight different pokemons: Vaporeon, Jolteon, Flareon, Espeon, Umbreon, Leafeon, Glaceon, and Sylveon.
     22 
     23 You know the length of the word in the crossword, and you already know some letters. Designers of the crossword made sure that the answer is unambiguous, so you can assume that exactly one pokemon out of the 8 that Eevee evolves into fits the length and the letters given. Your task is to find it.
     24 
     25 Input
     26 
     27 First line contains an integer *n* (6 ≤ *n* ≤ 8) – the length of the string.
     28 
     29 Next line contains a string consisting of *n* characters, each of which is either a lower case english letter (indicating a known letter) or a dot character (indicating an empty cell in the crossword).
     30 
     31 Output
     32 
     33 Print a name of the pokemon that Eevee can evolve into that matches the pattern in the input. Use lower case letters only to print the name (in particular, do not capitalize the first letter).
     34 
     35 Examples
     36 
     37 Input
     38 
     39 ```
     40 7  
     41 j......
     42 ```
     43 
     44 Output
     45 
     46 ```
     47 jolteon
     48 ```
     49 
     50 Input
     51 
     52 ```
     53 7  
     54 ...feon
     55 ```
     56 
     57 Output
     58 
     59 ```
     60 leafeon
     61 ```
     62 
     63 Input
     64 
     65 ```
     66 7  
     67 .l.r.o.
     68 ```
     69 
     70 Output
     71 
     72 ```
     73 flareon
     74 ```
     75 
     76 Note
     77 
     78 Here's a set of names in a form you can paste into your solution:
     79 
     80 ["vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"]
     81 
     82 {"vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"}