Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166280 李澄 双关键字排序 C++ 解答错误 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; }


测评信息: