CF452A.Eevee
入门
通过率:0%
时间限制:1.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
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.
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.
你正在解答 IPSC 2014 的填字游戏题目 K。你已解出所有线索,唯独剩下一道:伊布(Eevee)可以进化成哪只宝可梦?你对宝可梦并不熟悉,但快速搜索后得知,伊布可以进化成八种不同的宝可梦:水伊布(Vaporeon)、雷伊布(Jolteon)、火伊布(Flareon)、太阳伊布(Espeon)、月亮伊布(Umbreon)、叶伊布(Leafeon)、冰伊布(Glaceon)和仙子伊布(Sylveon)。
你已知填字游戏中该单词的长度,并且已知其中若干字母。填字游戏的设计者确保了答案是唯一确定的,因此你可以假设:在上述八种宝可梦中,恰好有一种 同时满足给定的长度与已知字母。你的任务就是找出它。
输入格式
First line contains an integer n (6 ≤ n ≤ 8) – the length of the string.
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).
第一行包含一个整数 n(6≤n≤8)——字符串的长度。
第二行包含一个由 n 个字符组成的字符串,其中每个字符要么是一个小写英文字母(表示已知字母),要么是一个英文句点字符(表示填字游戏中一个空格)。
输出格式
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).
打印一只伊布(Eevee)可进化成的宝可梦的名字,该名字需匹配输入中的模式。仅使用小写字母输出该名字(特别注意:首字母不得大写)。
输入输出样例
输入#1
7 j......
输出#1
jolteon
输入#2
7 ...feon
输出#2
leafeon
输入#3
7 .l.r.o.
输出#3
flareon
说明/提示
Here's a set of names in a form you can paste into your solution:
["vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"]
{"vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"}
以下是一组可供直接粘贴到你的解决方案中的名字:
["vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"]
{"vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"}
输入解题思路,AI测评打分。不知道怎么写?