Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
143545 陈家宝 给朋友排序 C++ 解答错误 0 0 MS 376 KB 405 2024-04-16 16:37:52

Tests(0/8):


#include<bits/stdc++.h> using namespace std; int main(){ int n, m; cin >> n >> m; vector<vector<int> >matrix(n, vector<int>(m)); for(int i = 0; i < n; ++i)for(int j = 0; j < m; ++j)cin >> matrix[i][j]; sort(matrix.begin(), matrix.end()); for(const auto &row : matrix) { for(const auto &num : row) cout << num << ' '; cout << '\n'; } return 0; }


测评信息: