#include<stdio.h>
int main(void)
{
char ch;
int e=0,n=0;
while( (ch=getchar())!='#' ){
if( ch=='e' )
e=1;
else{
if( ch=='i' && e==1 )n++;
e=0;
}
}
printf( "%d\n", n );
return 0;
}
int main(void)
{
char ch;
int e=0,n=0;
while( (ch=getchar())!='#' ){
if( ch=='e' )
e=1;
else{
if( ch=='i' && e==1 )n++;
e=0;
}
}
printf( "%d\n", n );
return 0;
}
[此贴子已经被作者于2016-8-23 22:57编辑过]