| ||||||||||
| 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 | |||||||||
WA的可以进来看看 int cnt = 0;
switch (s[0]) {
case 'u':
cnt = u+d;
break;
case 'f':
cnt = f+f;//注意要双程!
break;
case 'd':
cnt = d+u;
break;
default:
break;
}
if (flag) {
if (sum + cnt <= m) sum += cnt, ++ res;
else flag = 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator