a088: One-Two-Three 一二三
標籤 :
通過比率 : 100% (2 人 / 2 人 ) (非即時)
評分方式 :
Tolerant

最近更新 : 2021-04-12 11:01

內容

Your little brother has just to write one, two, and three in English. He has written a lot of those words on a paper, and your task is to recognize them. Be aware that your little brother is only a child, so he may make some small mistakes: there might be at most one wrong letter for each word. The word length is always correct. It is guaranteed that each letter he wrote is in lower-case, and each word has a unique interpretation.

你的弟弟剛學會寫英文的一二三。他在一張紙上寫了很多這幾個字,而你的工作便是辨認它們。要注意的是你弟弟不過是個小孩子,因此他會犯些小錯誤:至多一個錯誤的字母。單字長度一定是正確的。他所寫的一定是小寫字母,每個單字只可能有一種合理解釋。

 

 

輸入說明

The first line contains the number of words that your little brother has written. Each of the following lines contains a single word with all letters in lower-case. The words satisfy the constraints above: at most one letter might be wrong, but the word length is always correct. There will be at most 10 words in the input.

第一行包含你弟弟所寫單字數。接下來的每一行含有一個小寫字母組成的單字。單字必符合上述限制:至多一個錯誤的字母,但是單字長度永遠正確。輸入中最多有 10 個單字。

輸出說明

For each test case, print the numerical value of the word.

對每筆測資,輸出單字的數值。

範例輸入
3
owe
too
theee
範例輸出
1
2
3
測資資訊 :
記憶體限制 : 64 MB
隱藏 測資點#0 (50%): 1.0s , <1K
隱藏 測資點#1 (50%): 1.0s , <1K
提示 :
標籤:
出處:
https://zerojudge.tw/ShowProblem?problemid=a466 [編輯 :
zero_jason (zero_jason(MANAGER))
]


編號 身分 題目 主題 人氣 發表日期
沒有發現任何「解題報告」