Wuhan University of Science and Technology acm:1005:123

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.