codeforces MemSQL Start[c]UP 2.0 - Round 1 A. Eevee

2024-06-14 03:18

本文主要是介绍codeforces MemSQL Start[c]UP 2.0 - Round 1 A. Eevee,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

又一次与暴涨rating失之交臂,居然跪在了第1题抓狂

忘了判断字符串的长度了...

#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#define MAXN 10010
#define LL long long
using namespace std;string str[MAXN] = {"vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"};int main(void) {int n, cnt, ans, i, j;string t;while(cin >> n >> t) {cnt = ans = 0;for(i=0; i<t.size(); ++i) {if(t[i] != '.')cnt++;}for(i=0; i<8; ++i) {for(j=0; j<t.size(); ++j) {if(t[j] != '.') {if(str[i][j] == t[j]) {ans++;}}}if(ans == cnt && t.size()==str[i].size()) {cout << str[i] << endl;break;}ans = 0;}}return 0;
}


这篇关于codeforces MemSQL Start[c]UP 2.0 - Round 1 A. Eevee的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1059219

相关文章

Codeforces 158B

很久没有刷题了,刚刚有小学弟问了这道题,AC之后贴上来吧。水~~~ #include <cstdio>#include <cmath>int main() {int n;while(scanf("%d", &n) != EOF) {int a = 0, b = 0, c = 0, d = 0;int arr[100001];for (int i = 0; i < n; ++

Codeforces April Fools Day Contest 2014(附官方题解)

Codeforces2014年愚人节的坑题。。。但还是感觉挺好玩的。。。 A. The Great Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Two teams mee

Codeforces April Fools Day Contest 2013

2013年愚人节的坑题。。。 A. Mysterious strings time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Input The input contains a sin

WordPress视频主题Qinmei 2.0

WordPress视频主题Qinmei 2.0,简单漂亮的WP视频站源码 主题功能 可以根据豆瓣ID直接获取到其他详细信息,省去慢慢填写的痛苦;播放器支持直链,解析,m3u8格式,同时解析可匹配正则自动更改;新增动态页面,将评论样式改变作为信息流展示;分类展示,可根据评分排序等等; WordPress视频主题Qinmei 2.0

05 TensorFlow 2.0:CNN总结及实战

浮云爱蹉跎 流光怕寂寞 填残篇脉络 续断章因果 问今生旅途几时交错 前尘灯火 隔世传说                                                                                                                                 《流光卷》 卷积层 发现特征轮廓,实现特征提

04 TensorFlow 2.0:高阶OP之meshgrid

谁诀别相思成疾莫问天涯 也莫问归期 怎奈何无人了解 情断之时 冷暖自知                                                                                                                                 《莫问归期》 内容覆盖: stackmeshgrid im

03 TensorFlow 2.0:TOPK Accuracy实战

这江山风雨 岁月山河 刀光剑影 美了多少世间传说 且看他口若悬河 衣上有风尘 却原来是一位江湖说书人                                                                                                                                 《说书人》 在分类问题中会遇到TO

02 TensorFlow 2.0:前向传播之张量实战

你是前世未止的心跳 你是来生胸前的记号 未见分晓 怎么把你忘掉                                                                                                                                 《千年》 内容覆盖: convert to tensorreshape

在Eclipse里面启动tomcat服务器出现Server Tomcat v8.0 Server at localhost failed to start.问题

可能的原因是由于在写注解@WebServlet里面的url是出现同名的uri导致tomcat启动失败,或者在配置web.xml部署描述符时出现同名的url-parrtens:

【C++】类和对象2.0

俺来写笔记了,哈哈哈,浅浅介绍类和对象的知识点! 1.类的6个默认成员函数  俺们定义一个空类: class N{}; 似乎这个类N里面什么都没有,其实不是这样子的。这个空类有6个默认的成员函数 。 默认成员函数:用户没有显式实现,编译器会生成的成员函数称为默认成员函数。 其实不单止是空类,任何类在什么默认成员函数都不写时,编译器会自动生成以上6个默认成员函数。任何类如果没有