QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#142575 | #4965. Easy-to-Pronounce Words | JJCT_1 | WA | 1ms | 3536kb | C++14 | 669b | 2023-08-19 12:36:22 | 2023-08-19 12:36:25 |
Judging History
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;
}
详细
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