感觉数据有点弱

P1107 [BJWC2008] 雷涛的小猫

怎么了?noip有时候也写数据很大 其实是唬人的啊
by Red_w1nE @ 2016-10-04 14:03:09


```cpp #include<bits/stdc++.h> using namespace std; string a[25]; int n; bool cmp(string x,string y) { return x+y>y+x; } int main() { 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]; } ```
by partychicken @ 2017-09-16 20:55:09


这样都过了
by partychicken @ 2017-09-16 20:55:46


|