测评机: Xeond[6]
得分: 80分
提交日期: 2011-11-1 13:42:00
有效耗时: 531毫秒
测试结果1: 通过本测试点|有效耗时94ms
测试结果2: 通过本测试点|有效耗时62ms
测试结果3: 通过本测试点|有效耗时63ms
测试结果4: 通过本测试点|有效耗时62ms
测试结果5: 通过本测试点|有效耗时63ms
测试结果6: 通过本测试点|有效耗时62ms
测试结果7: 通过本测试点|有效耗时63ms
测试结果8: 通过本测试点|有效耗时62ms
测试结果9: 运行错误|普通保护错误
测试结果10: 运行错误|普通保护错误
提交代码: view sourceprint?01.program noip5;
02.var a:array[1..200]of longint;
03.ans,n,i,j,k,l:longint;
04.f:array[1..100,1..200]of longint;
05.begin
06.read(n);
07.for i:=1 to n do
08.begin
09.read(a[i]);
10.a[i+n]:=a[i];
11.end;
12.for l:=1 to n-1 do
13.for i:=1 to 2*n-1 do
14.begin
15.j:=l+i;
16.if j>2*n-1 then break;
17.for k:=i to j-1 do
18.if f[i,j]<f[i,k]+f[k+1,j]+a[i]*a[j+1]*a[k+1]
19.then f[i,j]:=f[i,k]+f[k+1,j]+a[i]*a[j+1]*a[k+1];
20.end;
21.ans:=0;
22.for i:=1 to n do
23.if ans<f[i,i+n-1] then ans:=f[i,i+n-1];
24.write(ans);
25.end.
普通保护错误???????????????????????????????????????????????????????
what's the meaning???