| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 127650 | 刘嘉乐 | 最大整数 | C++ | Accepted | 100 | 0 MS | 268 KB | 289 | 2024-01-25 09:46:42 |
#include<bits/stdc++.h> using namespace std; string a[105]; bool cmp(string s1,string s2){ return s1+s2>s2+s1; } 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; }