| ||||||||||
| 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 | |||||||||
你那样测是不对的,因为有可能是你的算法错造成RT.应该这样测.In Reply To:请大牛给看看。 Posted by:willard at 2007-11-19 13:10:15 如下所示,没有超时,所以数据应该没有>=21的情况.
#include <stdio.h>
void main()
{
int dev[21], c, max, i, n, m, op, tc=0, now;
scanf("%d%d%d", &n, &m, &c);
while(n != 0 && m != 0 && c != 0)
{
if(n >= 21 || n < 0) while(1);
for(i = 0; i < n; i++)
scanf("%d", &dev[i]);
for(i = 0; i < m; i++)
scanf("%d", &op);
scanf("%d%d%d", &n, &m, &c);
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator