| ||||||||||
| 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 | |||||||||
给个表吧...E跟F打错,WA了半天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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator