Children's Game UVA
来源:互联网 发布:c语言数据溢出怎么办 编辑:程序博客网 时间:2024/05/22 05:33
问题类型:STL-Sort
03pie’s solution for [UVA-10905]:
问题链接
#include<iostream> #include<cstring>#include<algorithmusing namespace std;const int maxn=50+5;string ans[maxn];bool cmp(string a,string b){ return a+b>b+a; }int main(){ int n; while(cin>>n&&n){ for(int i=0;i<n;i++){ cin>>ans[i]; } sort(ans,ans+n,cmp); for(int i=0;i<n;i++){ cout<<ans[i];} cout<<endl; } return 0;}
0 0
- uva Children's Game
- Uva Children's Game
- Children's Game UVA
- Children's Game UVA
- Children's Game UVA
- Children's Game UVA
- UVa 10905 - Children's Game
- UVa 10905 - Children's Game
- uva 10905 - Children's Game
- uva 10905 - Children's Game
- UVA 10905 Children's Game
- UVa 10905 - Children's Game
- Uva-10905-Children’s Game
- UVa 10905 - Children's Game
- UVa 10905 - Children's Game
- uva 10905 - Children's Game
- UVa 10905 - Children's Game
- uva 10905-Children’s Game
- Centos-redis安装配置
- html5贪吃蛇大作战源码和俄罗斯方块源码 javascript图片演示
- STL map的用法
- [RK3288][Android6.0] 调试笔记 --- 默认允许安装未知来源apk
- 手动实现jsonwebtoken
- Children's Game UVA
- untiy游戏接入uc_sdk(九游)
- 【Java】深入理解JVM学习笔记(一) —— JVM数据区域
- jq 常用字符操作
- android百度地图自动定位
- Android----View事件分发机制(一)
- 关于JQ JS的延时方法笔记
- 微信小程序开发填坑,优雅地处理用户的误操作引起的多次请求
- 数据泵导出指定表