[此贴子已经被作者于2016-3-22 23:34编辑过]
[此贴子已经被作者于2016-3-22 23:55编辑过]
#include <stdio.h> int main( void ) { unsigned count = 0; for( int pre=0,ch; ch=getchar(),ch!='#'; pre=ch ) count += (pre=='e' && ch=='i'); printf( "%u\n", count ); return 0; }