| ||||||||||
| 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 | |||||||||
只要操作系统不报,我就抓不到你的问题In Reply To:poj的RE判断有问题,一个AC,另一个就在类内加了一个数组就RE Posted by:nkzgm at 2008-03-06 14:24:18 只要这样子加一句
if (pos[i]+k>=N) while(1);
if(prm[pos[i]]!=prm[pos[i-1]]||prm[pos[i]+k]!=prm[pos[i-1]+k])
prmn[pos[i]]++;
你ac的程序就tle了
把你的数组全改成vector你就知道了
>
> 3147550 nkzgm 3261 Runtime Error G++ 2363B 2008-03-06 14:23:22
>
> 3147548 nkzgm 3261 Accepted 6780K 94MS G++ 2355B 2008-03-06 14:23:10
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator