QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#125171 | #4966. Decimal XOR | Amys4n | WA | 1ms | 3444kb | C++14 | 865b | 2023-07-16 04:04:02 | 2023-07-16 04:04:03 |
Judging History
answer
#include <bits/stdc++.h>
//ac
using namespace std;
int main() {
string s;
cin >> s;
if(s.size()==1){
cout << 1 << endl;
} else {
for(int i=0; i<s.size()-1; i++){
if(s[i]=='a' or s[i]=='e' or s[i]=='i' or s[i]=='o' or s[i]=='u'){
if(s[i+1]!='a' and s[i+1]!='e' and s[i+1]!='i' and s[i+1]!='o' and s[i+1]!='u'){
continue;
} else{
cout << 0 << endl;
return 0;
}
} else {
if(s[i+1]=='a' or s[i+1]=='e' or s[i+1]=='i' or s[i+1]=='o' or s[i+1]=='u'){
continue;
} else{
cout << 0 << endl;
return 0;
}
}
}
cout << 1 << endl;
}
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3444kb
input:
22776 15954
output:
0
result:
wrong answer 1st lines differ - expected: '09099', found: '0'