英语翻译Given an integer array A,which contains N integers.Pleas

问题描述:

英语翻译
Given an integer array A,which contains N integers.Please calculate the sum of f[i].Here,f[i] means the number of integers strictly less than A[i] in A.
输入
There are several cases.For each case,the first line has an integer N,then follows N integers in the second line (1
1个回答 分类:综合 2014-12-01

问题解答:

我来补答
给定一个整数数组,含有n个整数.请计算f[i]之和.在这里,f[i]意味着数量的整数严格不到一个[i].
输入
有几个案例.针对每个案例第一线有一个整数N,N整数然后是第二条线(1 < = N < = 1000).
有不超过3000整数输入文件.
输出
每一个案例都显示输出一个整数之和每行f[i]
样例输入
3
1 2 3
4
1 2 3 2
样例输出
3
5
以前学过这个,是计算机用的程序.还是很好学的,嘿嘿
再问: 给我解释下这案例是怎么加的? 4 1 2 3 2
再答: 要进那个程序直接用,我有点不晓得怎么跟你说
再问: 我的意思是 3 或者 5是怎么来的??
再答: 这你要看自己用的程序及设定了,我级别还不够高到看到数字就能完全作答
再问: 我懂了 谢谢·
 
 
展开全文阅读
剩余:2000
上一页:函数急