Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

测试数据:BBBFPAAA 的结果是1。哈哈,我是用Map来AC的。

Posted by gfedcba at 2009-03-05 14:41:09 on Problem 2608
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator