哪错了啊阿巴阿巴/
查看原帖
哪错了啊阿巴阿巴/
417106
i7889楼主2020/10/26 19:14
#include <stdlib.h>
#include <string.h>
#include <math.h>
	int main() {
		int n,i,j,s=0,fish[1000];
		scanf("%d", &n);
		for (i =0; i <=n-1; i++) {
			scanf("%d", &fish[i]);

		}
		for (i = n-1; i >= 0; i--) {
			for (j = i - 1; j >= 0; j--) {
				if (fish[i] > fish[j])
					s++;
			}
			printf("%d ", s);
		}


		
	system("pause");
	return 0;
}```
2020/10/26 19:14
加载中...