Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main ()
- {
- int testCase; scanf ("%d", &testCase);
- while ( testCase-- )
- {
- char a [10]; scanf ("%s", a);
- if ( strlen (a) == 5 ) printf ("3\n");
- else
- {
- int cnt = 0;
- if ( a [0] == 'o' ) cnt++;
- if ( a [1] == 'n' ) cnt++;
- if ( a [2] == 'e' ) cnt++;
- if ( cnt >= 2 ) printf ("1\n");
- else printf ("2\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement