讨论 / 怎么回事!是大神的看一下
lishuhanji 2013-08-21 03:51:00
点我顶贴 收藏 删除
有效耗时: 2844毫秒

测试结果1: 通过本测试点|有效耗时187ms

测试结果2: 通过本测试点|有效耗时156ms

测试结果3: 通过本测试点|有效耗时172ms

测试结果4: 通过本测试点|有效耗时172ms

测试结果5: 通过本测试点|有效耗时172ms

测试结果6: 通过本测试点|有效耗时203ms

测试结果7: 通过本测试点|有效耗时250ms

测试结果8: 通过本测试点|有效耗时610ms

测试结果9: 通过本测试点|有效耗时922ms

测试结果10: 选手程序运行超过时限

提交代码: view sourceprint?01.var

02.

n,i,r,j:longint;

03.

a:array[1..20000] of longint;

04.begin

05.

readln(n);

06.

for i:=1 to n do readln(a[i]);

07.

r:=0;

08.

for i:=1 to n-1 do

09.

for j:=i+1 to n do

10.

if a[i]>a[j] then r:=r+1;

11.

write(r);

12.end.

#1 107229HR@2013-08-21 03:51:00
回复 删除
你自己AC了。。。。

RT,另外看不懂Pas的

查看更多回复
提交回复