You are viewing a single comment's thread. Return to all comments →
function main() { var S = readLine(); var n = 0; for(var i = 0; i < S.length ; i += 3){ if(S[i] != "S") n++; if(S[i + 1] != "O") n++; if( S[i + 2] != "S") n++; } console.log(n); }
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 →