Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127573 谢思涵 最大整数 C++ 通过 100 0 MS 260 KB 341 2024-01-25 09:32:59

Tests(4/4):


#include <iostream> #include <algorithm> #include <string> using namespace std; string a[110]; bool cmp(string x, string y) {return x + y > y + x;} int main() { int n; cin >> n; for(int i = 1; i <= n; i++) cin >> a[i]; sort(a + 1, a + n + 1, cmp); for(int i = 1; i <= n; i++) cout << a[i]; cout << endl; return 0; }


测评信息: