Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127263 罗嘉为 车厢重组 C++ 通过 100 767 MS 444 KB 294 2024-01-25 08:30:55

Tests(12/12):


#include <bits/stdc++.h> using namespace std; int a[110000]; int main(){ int n, c = 0; cin >> n; for(int i = 0; i < n; i++){ cin >> a[i]; } for(int i = 0; i < n; i++){ for(int j = 0; j < i; j++){ if(a[i] < a[j]){ c++; } } } cout << c; return 0; }


测评信息: