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

给个表吧...E跟F打错,WA了半天

Posted by masque at 2009-08-02 21:17:36 on Problem 2895
NKU一个PPT上说是线段树。。。汗死

int J[1000],V[1000];
void init(){
         J['A'] = J['B'] = J['C'] = 2;
         J['D'] = J['E'] = J['F'] = 3;
         J['G'] = J['H'] = J['I'] = 4;
         J['J'] = J['K'] = J['L'] = 5;
         J['M'] = J['N'] = J['O'] = 6;
         J['P'] = J['Q'] = J['R'] = J['S'] = 7;
         J['T'] = J['U'] = J['V'] = 8;
         J['W'] = J['X'] = J['Y'] = J['Z'] = 9;
         V['A']=V['D']=V['G']=V['J']=V['M']=V['P']=V['T']=V['W']=p;
         V['B']=V['E']=V['H']=V['K']=V['N']=V['Q']=V['U']=V['X']=p*2;
         V['C']=V['F']=V['I']=V['L']=V['O']=V['R']=V['V']=V['Y']=p*3;
         V['Z']=V['S']=p*4;
         V[' ']=p;
}

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