QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#142575#4965. Easy-to-Pronounce WordsJJCT_1WA 1ms3536kbC++14669b2023-08-19 12:36:222023-08-19 12:36:25

Judging History

你现在查看的是最新测评结果

  • [2023-08-19 12:36:25]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3536kb
  • [2023-08-19 12:36:22]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

void solve(){
	string aux;
	cin>>aux;
	vector<int> todo;
	for(int i=1;i<aux.size();i++){
		if(aux[i]=='a' || aux[i]=='e' || aux[i]=='i' || aux[i]=='o' || aux[i]=='u'){
			if(aux[i-1]=='a' || aux[i-1]=='e' || aux[i-1]=='i' || aux[i-1]=='o' || aux[i-1]=='u'){
				cout<<"0\n";
				return;
			}
		}else{
			if(aux[i-1]=='a' || aux[i-1]=='e' || aux[i-1]=='i' || aux[i-1]=='o' || aux[i-1]=='u'){
			}else{
				cout<<"0\n"<<aux[i+1];
				return;
			}
		}
	}
	cout<<"1\n";
}

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	int t=1;
	//cin >> t;
	while(t--){
		solve();
	}
	return 0;
}


Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3536kb

input:

contest

output:

0
e

result:

wrong output format Extra information in the output file