Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
166280 李澄 双关键字排序 C++ Wrong Answer 0 472 MS 648 KB 316 2024-08-19 10:34:53

Tests(0/5):


#include <bits/stdc++.h> using namespace std; int a[100005]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int x, y; cin >> x >> y; a[i] = x * 10 + y; } sort(a + 1, a + n + 1); for (int i = 1; i <= n; i++) cout << a[i] / 10 << " " << a[i] % 10 << endl; return 0; }


Judgement Protocol: