摘要: 序号互换时间限制:1000 ms | 内存限制:65535 KB难度:2描述Dr.Kong设计了一个聪明的机器人卡多,卡多会对电子表格中的单元格坐标快速计算出来。单元格的行坐标是由数字编号的数字序号,而列坐标使用字母序号。观察字母序号,发现第1列到第26列的字母序号分别为A,B,…,Z,接着,第27列序号为AA,第28列为AB,依此类推。若给Dr.Kong的机器人卡多一个数字序号(比如32),它能很快算出等价的字母序号(即AF),若给机器人一个字母序号(比如AA)),它也能很快算出等价的数字序号(27),你能不能与卡多比试比试,看谁能算得更快更准确。输入第一行: N 表示有多少组测试数据。 接 阅读全文
posted @ 2013-03-02 21:56 heity 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Phone List时间限制:1000 ms | 内存限制:65535 KB难度:4描述Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let's say the phone catalogue listed these numbers:Emergency 911Alice 97 625 999Bob 91 12 54 26In this case, it's not possible to cal 阅读全文
posted @ 2013-03-02 19:11 heity 阅读(240) 评论(0) 推荐(0) 编辑