随笔分类 -  String

摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 6 bool cmp(string a,string b) 7 { 8 return a+b>b+a; 9 }10 11 void solve(int n)12 {13 string a[100];14 for(int i=0;i>a[i];17 }18 19 sort(a,a+n,cmp);20 for(int i=0;i>n && n)32 {33 solve(n);34 }35 36 ... 阅读全文
posted @ 2013-12-23 23:54 doubleshik 阅读(226) 评论(0) 推荐(0)
摘要:题目就是找出和 erdos这个人合著书的关系。 第一合作是1 。 然后和第一合作的作者有关系的是2.。。第一次用stl写了写。。虽然写的蛮恶心的题目:Problem F: Erdös Numbers BackgroundThe Hungarian Paul Erdös (1913-1996, speak as ``Ar-dish'') not only was one of the strangest mathematicians of the 20th century, he was also one of the most famous. He kept 阅读全文
posted @ 2013-11-24 00:49 doubleshik 阅读(630) 评论(0) 推荐(0)