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 |
测试数据:BBBFPAAA 的结果是1。哈哈,我是用Map来AC的。int map[256]; map['B'] = map['F'] = map['P'] = map['V'] = 1; map['C'] = map['G'] = map['J'] = map['K']= map['Q'] = map['S'] = map['X'] = map['Z'] = 2; map['D'] = map['T'] = 3; map['L'] = 4; map['M'] = map['N'] = 5; map['R'] = 6; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator