摘要: 题又没看懂,挺简单的事情说这么复杂,中间一大段没明白。题目:Tree's a CrowdTree's a CrowdDr William Larch, noted plant psychologist and inventor of the phrase ``Think like a tree--Think Fig'' has invented a new classification system for trees. This is a complicated system involving a series of measurements which a 阅读全文
posted @ 2013-02-09 17:18 上白泽慧音 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 我认为是uva上最简单的题了。题目:Where is the Marble? Where is the Marble?Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles one after another in ascending order of the numbers written on them. Then Meena would ask R 阅读全文
posted @ 2013-02-09 14:24 上白泽慧音 阅读(2075) 评论(0) 推荐(0) 编辑
摘要: 今天除夕哈~祝acmer新年多多AC~~这次又因为英文没看懂题目,以为名字有多个。这个题目没有考虑重名的情况,应该是个小bug吧。虽然是简单的题,不过也学习了qsort套用结构体排序,可以参考七种qsort排序方法。题目: Problem B - List of Conquests Shahriar Manzoor SHAHRIAR MANZOOR 44 819 2002-10-30T12:20:00Z 2002-10-20T17:16:00Z 2003-01-10T17:27:00Z 2 260 1484 CSE, BUET 12 2 1822 9.2720 ... 阅读全文
posted @ 2013-02-09 12:06 上白泽慧音 阅读(822) 评论(0) 推荐(0) 编辑
摘要: 七种qsort排序方法 <本文中排序都是采用的从小到大排序> 一、对int类型数组排序 1 int num[100]; 2 3 //Sample: 4 5 int cmp ( const void *a , const void *b ) 6 { 7 return *(int *)a - *(int *)b; 8 } 9 10 qsort(num,100,sizeof(num[0]),cmp); 二、对char类型数组排序(同int类型) 1 char word[100]; 2 3 //Sample: 4 5 int cmp( const void *a , const void 阅读全文
posted @ 2013-02-09 11:17 上白泽慧音 阅读(800) 评论(0) 推荐(0) 编辑