题目1099:后缀子串排序
2017-04-16 23:07
211 查看
#include <iostream> #include <stdio.h> #include <algorithm> #include <math.h> #include <string> #include <string.h> #include <vector> #include <queue> #include <stack> #include <sstream> #include <climits> #include <cstring> using namespace std; //1099 string s; vector<string> v; int main(){ while(cin>>s){ v.clear(); for(int i=0;i<s.size();i++) v.push_back(s.substr(i)); sort(v.begin(),v.end()); for(int i=0;i<v.size();i++) cout<<v[i]<<endl; } return 0; } /************************************************************** Problem: 1099 User: cust123 Language: C++ Result: Accepted Time:10 ms Memory:1524 kb ****************************************************************/
相关文章推荐
- <九度 OJ>题目1099:后缀子串排序
- 九度OJ 题目1099:后缀子串排序
- jobdu 题目1099:后缀子串排序
- 九度oj 题目1099:后缀子串排序
- 题目1099:后缀子串排序(qsort函数自定义cmp函数)
- 九度题目1099:后缀子串排序
- 九度OJ—题目1099:后缀子串排序
- 题目1099:后缀子串排序 C++\Java
- 题目1099:后缀子串排序
- 【九度】题目1099:后缀子串排序
- 九度 1099:后缀子串排序
- 九度OJ 1099 后缀子串排序
- 九度OJ 1099 后缀子串排序 JAVA
- 九度OJ-1099:后缀子串排序
- 九度OJ 1099:后缀子串排序 (排序)
- 九度OJ1099:后缀子串排序解题报告
- 九度OJ 1099:后缀子串排序 (排序)
- 九度oj 1099 后缀子串排序
- UVA 题目760 DNA Sequencing (后缀数组求两个串最长公共子串,字典序输出)
- 2010上交:后缀子串排序