| 记录编号 | 13285 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 382.排序工作量 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | Pascal | 运行时间 | 3.696 s | ||
| 提交时间 | 2009-10-02 09:15:06 | 内存使用 | 0.18 MiB | ||
program sortt;
var
n,i,j,max:longint;
sz:array[1..10000]of double;
begin
assign(input,'sortt.in');
assign(output,'sortt.out');
reset(input);
rewrite(output);
readln(n);
for i:=1 to n do
read(sz[i]);
max:=0;
for i:=1 to n-1 do
for j:=i+1 to n do
if sz[i]>sz[j] then max:=max+1;
writeln(max);
close(input);
close(output);
end.