比赛 皇后 评测结果 AAAAAAAAAA
题目名称 牛语 最终得分 100
用户昵称 swttc 运行时间 0.003 s
代码语言 C++ 内存使用 0.31 MiB
提交时间 2017-03-19 20:00:59
显示代码纯文本
#include<iostream>
#include<cmath>
#include<string>
#include<cstring>
#include<cstdio>
using namespace std;
int n;
char c[1000];
int main()
{
	freopen("latin.in","r",stdin);
	freopen("latin.out","w",stdout);
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		cin>>c;
		if(c[0]=='a'||c[0]=='e'||c[0]=='i'||c[0]=='o'||c[0]=='u')
		{
			int l=strlen(c);
			c[l]='c';
			c[l+1]='o';
			c[l+2]='w';
			for(int j=0;j<=l+2;j++) cout<<c[j];
		}
		else 
		{
			int l=strlen(c);
			c[l]=c[0];
			c[l+1]='o';
			c[l+2]='w';
			for(int j=1;j<=l+2;j++) cout<<c[j];
		}
	}
	return 0;
}