1 人解决,1 人已尝试。
2 份提交通过,共有 2 份提交。
8.9 EMB 奖励。
单点时限: 2.0 sec
内存限制: 256 MB
In all the annals of knighthood, no personality trait has been in more dire need than the fortitude to withstand the diplomatically deleterious effects of a vicious, relentless taunting. Tasked with strengthening the mental endurance of Camelot’s knights, King Arthur’s court decided that instructional taunting must be applied, yet it could not be delivered by the chivalrous administration. Thus, Sir Lancelot commanded a local anarcho-syndicalist peasant to write a program that generates taunts (a.k.a. mudslinging) thereby producing a script to test the patience of knights in a training environment. To prevent unbridled creativity in taunting from spoiling the otherwise stately proceedings of a nobleman’s education, the following rules designed by committee (The Round Table) must be adhered to:
The input will consist of an unspecified number of lines. Each line will contain a statement uttered by a knight consisting of letters, digits, the characters “,.-!?” and whitespace. Each line of input will be more than 1 character and less than 72 characters in length. All words will be separated by whitespace. Each statement will contain at least one word.
For every line of input, print a block of output containing the following:
◎A single line containing “Knight:”, a space, and the input. Any appearance of whitespace inside the input will be replaced by a single space.
◎All taunts (as explained in the above rules) prefaced by “Taunter:” and a space, the taunt, and a period. Each word should be separated from neighboring words by a single space.
◎A blank line
Each taunt should begin with a capital letter, and no extra characters should be added.
Hello! Are you feeling alright? Is there someone else I could talk to? Anyone at all? We seek the holy grail . . .
Knight: Hello! Taunter: Your mother was a hamster. Knight: Are you feeling alright? Taunter: Coconut! Your steed is a silly duck. Knight: Is there someone else I could talk to? Taunter: Your father personified a herring. Taunter: Your grandmother was a newt. Taunter: Peril! Your king masquerades as a conspicuously wicked chicken. Knight: Anyone at all? Taunter: Your grandfather personified a vole. Knight: We seek the holy grail . . . Taunter: (A childish hand gesture). Taunter: Your godfather was a parrot.
1 人解决,1 人已尝试。
2 份提交通过,共有 2 份提交。
8.9 EMB 奖励。
创建: 17 年前.
修改: 6 年,11 月前.
最后提交: 16 年,7 月前.
来源: N/A