| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 127503 | 蔡悠然 | 最大整数 | C++ | Accepted | 100 | 0 MS | 264 KB | 267 | 2024-01-25 09:18:36 |
#include<bits/stdc++.h> using namespace std; string a[105]; bool cmp(string a,string b){ return a+b>b+a; } int main() { int n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } sort(a,a+n,cmp); for(int i=0;i<n;i++){ cout<<a[i]; } return 0; }