You are viewing a single comment's thread. Return to all comments →
SIMPLE C CODE
int main(){ char* s = (char *)malloc(10240 * sizeof(char)); int C=0; scanf("%s",s); for(int i=0;i<strlen(s);i=i+3) { if(s[i]!='S') C++; if(s[i+1]!='O') C++; if(s[i+2]!='S') C++; } printf("%d",C); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Mars Exploration
You are viewing a single comment's thread. Return to all comments →
SIMPLE C CODE