English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
所有分類

Output Your Message

Time Limit: 1 second
Memory Limit: 1 MB

Given a name in the input, please output the name with an additional string `, you are fired.' If the input is either `Marcus', `Patrick' or `Sherman' (these theee names are sorted in lexicographical order), please output his name and ` is extremely clever.'. It is guranteed that the string in the input contains at most 255 characters and the characters are all printable ASCII characters.

2006-10-28 19:34:56 · 3 個解答 · 發問者 阿Ben 1 in 電腦與網際網路 程式設計

3 個解答

輸出你的訊息
時間限制:1秒
記憶体限制:1MB
輸入一個名字,請輸出 名字 加上 ", you are fired" (你被解雇了)。
如果輸入的名字是 Marcus, Patrick或是Sherman ,請輸入 名字 加上 " is extremely clever" (相當的聰明)。
必需檢查輸入的名字,長度不可大於255字元,且都必需是可列印的ASCII字元

2006-10-28 19:45:18 · answer #1 · answered by ? 2 · 0 0

(these theee names are sorted in lexicographical order),
這句沒譯到

2006-10-28 20:32:16 · answer #2 · answered by ? 7 · 0 0

並不需要檢查.題目已經規定.輸入的名字的長度最大是255且其字元都是可列印的ASCII字元.

2006-10-28 19:52:13 · answer #3 · answered by 7 · 0 0

fedest.com, questions and answers