Problem Description
Your brother has just learned to write English one, two and three (three). He wrote some 123 on the paper, but some of the letters were wrong. It is known that each word has a maximum of one letter written incorrectly (the word length is certainly not wrong), can you recognize what he wrote?
Input
Number of first-action words (no more than 10). Each of the following behaviors is a word, the word length is correct, and at most one letter is incorrectly written. All letters are in lowercase.
Output
For each set of test data, the output line is the Arabic numeral of the word. Input guarantees only one way of understanding.
Sample Input
3owetootheee
Sample Output
123
1#include <stdio.h>2 3 intMain ()4 {5 intcases;6 while(SCANF ("%d", &cases)! =EOF)7 {8 while(cases-- )9 {Ten Chara[Ten]; Onescanf"%s", a); A intI=0; - while(a[i]!=' /') - { thei++; - } - - if(I >3) puts ("3"); + Else - { + if((a[0] =='o') + (a[1] =='N') + (a[2] =='e') >=2 ) APuts"1"); at Else -Puts"2"); - } - } - } - in - return 0; to}
Wuhan University of Science and Technology acm:1005:123