QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#125957 | #4965. Easy-to-Pronounce Words | AH_Lusho# | AC ✓ | 1ms | 3488kb | C++14 | 652b | 2023-07-18 01:39:08 | 2023-07-18 01:39:10 |
Judging History
answer
#include <iostream>
using namespace std;
int main()
{
string x,c="bcdfghjklmnpqrstvwxyz",v="aeiou";
cin>>x;
int sw,ans=1;
size_t found = c.find(x[0]);
if(found!=string::npos)
sw=0;
else
sw=1;
for(int i=1;i<x.size();i++){
//cout<<sw<<' '<<ans<<endl;
if(sw==0){
size_t found = c.find(x[i]);
if(found!=string::npos)
ans=0;
sw=1;
}
else{
size_t found = v.find(x[i]);
if(found!=string::npos)
ans=0;
sw=0;
}
}
cout<<ans<<endl;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3416kb
input:
contest
output:
0
result:
ok single line: '0'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
coaches
output:
0
result:
ok single line: '0'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
cocahes
output:
1
result:
ok single line: '1'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
ali
output:
1
result:
ok single line: '1'
Test #5:
score: 0
Accepted
time: 1ms
memory: 3368kb
input:
a
output:
1
result:
ok single line: '1'
Test #6:
score: 0
Accepted
time: 1ms
memory: 3424kb
input:
b
output:
1
result:
ok single line: '1'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
c
output:
1
result:
ok single line: '1'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
d
output:
1
result:
ok single line: '1'
Test #9:
score: 0
Accepted
time: 1ms
memory: 3452kb
input:
e
output:
1
result:
ok single line: '1'
Test #10:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
f
output:
1
result:
ok single line: '1'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3404kb
input:
g
output:
1
result:
ok single line: '1'
Test #12:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
h
output:
1
result:
ok single line: '1'
Test #13:
score: 0
Accepted
time: 1ms
memory: 3448kb
input:
i
output:
1
result:
ok single line: '1'
Test #14:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
j
output:
1
result:
ok single line: '1'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
k
output:
1
result:
ok single line: '1'
Test #16:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
l
output:
1
result:
ok single line: '1'
Test #17:
score: 0
Accepted
time: 1ms
memory: 3432kb
input:
m
output:
1
result:
ok single line: '1'
Test #18:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
n
output:
1
result:
ok single line: '1'
Test #19:
score: 0
Accepted
time: 1ms
memory: 3424kb
input:
o
output:
1
result:
ok single line: '1'
Test #20:
score: 0
Accepted
time: 1ms
memory: 3452kb
input:
p
output:
1
result:
ok single line: '1'
Test #21:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
q
output:
1
result:
ok single line: '1'
Test #22:
score: 0
Accepted
time: 1ms
memory: 3440kb
input:
r
output:
1
result:
ok single line: '1'
Test #23:
score: 0
Accepted
time: 1ms
memory: 3452kb
input:
s
output:
1
result:
ok single line: '1'
Test #24:
score: 0
Accepted
time: 1ms
memory: 3456kb
input:
t
output:
1
result:
ok single line: '1'
Test #25:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
u
output:
1
result:
ok single line: '1'
Test #26:
score: 0
Accepted
time: 1ms
memory: 3424kb
input:
v
output:
1
result:
ok single line: '1'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3356kb
input:
w
output:
1
result:
ok single line: '1'
Test #28:
score: 0
Accepted
time: 1ms
memory: 3444kb
input:
x
output:
1
result:
ok single line: '1'
Test #29:
score: 0
Accepted
time: 1ms
memory: 3356kb
input:
y
output:
1
result:
ok single line: '1'
Test #30:
score: 0
Accepted
time: 1ms
memory: 3396kb
input:
z
output:
1
result:
ok single line: '1'
Test #31:
score: 0
Accepted
time: 1ms
memory: 3460kb
input:
ae
output:
0
result:
ok single line: '0'
Test #32:
score: 0
Accepted
time: 1ms
memory: 3452kb
input:
fg
output:
0
result:
ok single line: '0'
Test #33:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
abacadefagahijakalamanopaqaras
output:
1
result:
ok single line: '1'
Test #34:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
tuvawaxayaz
output:
1
result:
ok single line: '1'
Test #35:
score: 0
Accepted
time: 1ms
memory: 3452kb
input:
bababababababababababababababa
output:
1
result:
ok single line: '1'
Test #36:
score: 0
Accepted
time: 0ms
memory: 3400kb
input:
babababababababababababababab
output:
1
result:
ok single line: '1'
Test #37:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
ababababababababababababababab
output:
1
result:
ok single line: '1'
Test #38:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
ababababababababababababababa
output:
1
result:
ok single line: '1'
Test #39:
score: 0
Accepted
time: 1ms
memory: 3488kb
input:
ababababababababababababababaa
output:
0
result:
ok single line: '0'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3416kb
input:
bba
output:
0
result:
ok single line: '0'
Test #41:
score: 0
Accepted
time: 1ms
memory: 3484kb
input:
abba
output:
0
result:
ok single line: '0'
Test #42:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
just
output:
0
result:
ok single line: '0'
Test #43:
score: 0
Accepted
time: 1ms
memory: 3424kb
input:
some
output:
1
result:
ok single line: '1'
Test #44:
score: 0
Accepted
time: 1ms
memory: 3484kb
input:
random
output:
0
result:
ok single line: '0'
Test #45:
score: 0
Accepted
time: 1ms
memory: 3412kb
input:
words
output:
0
result:
ok single line: '0'
Test #46:
score: 0
Accepted
time: 1ms
memory: 3408kb
input:
ok
output:
1
result:
ok single line: '1'
Test #47:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
done
output:
1
result:
ok single line: '1'
Test #48:
score: 0
Accepted
time: 1ms
memory: 3488kb
input:
lastinputline
output:
0
result:
ok single line: '0'