| ||||||||||
| 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 | |||||||||
Re:修改提交N次了,还是超时,晒代码,请大虾指教:In Reply To:Re:修改提交N次了,还是超时,晒代码,请大虾指教: Posted by:102103105 at 2011-10-01 14:15:14 > 大哥,能不能把你解决这个问题的思路写出来啊,你的代码很规矩,但是没有注实在不好看,我还没有解决这个问题,知道它应该很复杂,所以想在这里来看看有没有思路;我看了一部分你的代码,想问你你的write和compute等函数是想要干什么,为什么d[i]中i的取值只能到255?
> /* for(i=0;i<255;i++)
> d[i].y=0;
> i=0;
> while(scanf("%d %ld",&num,&time) && (num!=0||time!=0))
> {
> d[i].x=num;
> d[i].y=time;
> d[i].a=s;
> ……
> i++;
> }
> */
> //上面是你的代码
> 在while中,没输入一次数据,i都加一次,你如何知道他要输入多少行?
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator