- 博客(2)
- 收藏
- 关注
原创 HDU 1018
Big Number Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6291 Accepted Submission(s): 2836 Problem Description In many application
2013-07-02 20:49:01 393
原创 几种常见的排序方法(一)
本文介绍几种常见的排序方法: 一:冒泡法排序 n个数由小到大排序 n个数————>n-1趟排序 第j 趟 ————>n-1-j次两两比较 设置标志符,如果有一趟排序不发生两两比较则排序完成。 代码如下: void BubbleSort(int a[],int n) { int i,j,temp; int flag=1; while(flag)
2013-06-19 10:48:10 609
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人