Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
不忿!这道题目居然跟我们玩文字游戏!那么多陷阱!郁闷!本题目中最大的陷阱:(唉!想想人家重蹈覆辙,好悲惨哦!所以写出来了!) 题目中有这样一句话All excuses can contain any upper or lower case alphanumeric character, a space, or any of the following punctuation marks [".,!?] not including the square brackets and will not exceed 70 characters in length. 对这句话的理解要注意:can contain 是说可以包含这些,而不是只包含这些!所以嘛,excuses中还会有什么1,2,3,4,5这些数字,还有什么@#¥%%^&^&^&×&^×^&这些乱七八糟的符号!他们也是下文说的分割符! ----------------------------------------------- 下文说分割符可以是: the beginning or end of the line or any non-alphabetic character or a space 汗!为什么space要独立于non-alphabetic character 之外呢?难道说space不算non-alphabetic character ? 为什么要单独说它泥?优点郁闷,忽悠人嘛!换成the beginning or end of the line or any non-alphabetic character 不就可以了么?还省那么多字呢! ------------------------------------------------- 本题还有一个陷阱,这个陷阱还比较合理!大家就自己去想了! Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator