题目传送门

 /*
水题:三个字符串判断每个是否有相应的元音字母,YES/NO
下午网速巨慢:(
*/
#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std; const int MAXN = 1e2 + ;
const int INF = 0x3f3f3f3f;
string s[]; int main(void) //Codeforces Beta Round #70 (Div. 2) A. Haiku
{
// freopen ("A.in", "r", stdin); while (getline (cin, s[]))
{
getline (cin, s[]); getline (cin, s[]);
// cout << s[0] << endl << s[1] << endl << s[2] << endl; continue; bool flag = true;
for (int i=; i<; ++i)
{
int cnt; int m = ;
if (i == || i == ) cnt = ;
else cnt = ;
for (int j=; s[i][j]; ++j)
{
if (s[i][j] == 'a' || s[i][j] == 'e' || s[i][j] == 'i' || s[i][j] == 'o'
|| s[i][j] == 'u') m++;
}
if (m != cnt) flag = false;
if (!flag) break;
} if (flag) puts ("YES");
else puts ("NO");
} return ;
}

最新文章

  1. POJ1849Two[DP|树的直径](扩展HDU4003待办)
  2. Spring学习 Ioc篇(一 )
  3. E: 软件包*需要重新安装,但是我无法找到相应的安装文件。(ubuntu14.04)
  4. [转]Delphi I/O Errors
  5. vim之执行shell命令
  6. B进制加法(洛谷1604)
  7. iOS之PCH文件
  8. Redhat 5上OPENLDAP的安装备份和恢复
  9. hive-jdbc获取查询日志慢的问题发现与解决
  10. 【安富莱原创开源应用第2期】基于RL-USB和RL-FlashFS的完整NAND解决方案,稳定好用,可放心用于产品批量
  11. P2495 [SDOI2011]消耗战 lca倍增+虚树+树形dp
  12. apache、nginx的虚拟域名配置和rewrite配置,以及web缓存的几种方式
  13. python之Oracle操作(cx_Oracle)
  14. Winform开发框架之简易工作流设计(转自 伍华聪博客)
  15. 《CEO说 像企业家一样思考》读书笔记
  16. scrapy爬虫框架之Xpath选择器
  17. jQuery EasyUI教程之datagrid应用-2
  18. 使用maven构建基本的web项目结构
  19. Fiddler2 抓取手机APP数据包
  20. 流程控制--while

热门文章

  1. activiti自己定义流程之自己定义表单(二):创建表单
  2. C语言最小生成树prim算法(USACO3.1)
  3. 跟面试官讲Binder(零)
  4. 设计模式C++实现_2_简单工厂模式
  5. Spring AOP监控SQL运行
  6. Java-ReentrantReadWriteLock的简单样例
  7. python 获取代码宿主机名 ip
  8. 设计模式-(17)策略模式 (swift版)
  9. UESTC149 解救小Q
  10. webstorm使用帮助(转自http://my.oschina.net/longteng2013/blog/138010),另外有部分内容摘自其它人博客