上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: 1. Basic 2. convert 3. Mathematical function 4. Random number function 5. Trigonometric functions 阅读全文
posted @ 2017-01-17 11:36 KennyRom 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1. basic Dictionary is a special sequence. 2. accessing values 3. update 4. delete 5. properties Duplicate key is not allowed. 6. Built-in function 阅读全文
posted @ 2017-01-17 10:48 KennyRom 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1. basic Tuples is a sequence of immutable object. It's a sequence, just like List. However, it cannot be changed. If a tuples only contain a object, 阅读全文
posted @ 2017-01-17 10:21 KennyRom 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1. How to run the python file? python ...py 2. UTF-8 is a character encoding, just like ASCII. 3. round(floating-point number) 4. %r print the way you 阅读全文
posted @ 2017-01-17 09:50 KennyRom 阅读(257) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; const int MAX = 1001; int l[MAX]; //Heap Sort void HeapAdjust(int s, int m) { int rc = l[s]; for(int j=2*s;j=l[j]) break; l[s]=l[j]; s=j; }... 阅读全文
posted @ 2017-01-05 10:24 KennyRom 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; const int MAX = 10001; int l[MAX]; int Partition(int low, int high) { l[0]=l[low]; int pivotkey=l[low]; while(low=pivotkey) high--; l[l... 阅读全文
posted @ 2017-01-05 09:50 KennyRom 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; const int MAX = 1001; int l[MAX]; void ShellInsert(int n, int dk) { for(int i=dk+1;i0&&l[0]0;k/=2) ShellInsert(n, k); } int main() { int n; cin>>n... 阅读全文
posted @ 2017-01-05 09:34 KennyRom 阅读(142) 评论(0) 推荐(0) 编辑
摘要: //直接插入排序 #include using namespace std; const int MAX = 1001; int l[MAX]; void InsertSort(int n) { int j; for(int i=2;i>n; for(int i=1;i>l[i]; InsertSort(n); for(int i=1;i<=n... 阅读全文
posted @ 2017-01-05 09:02 KennyRom 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Description You know sorting is very important. And this easy problem is: Given you an array with N non-negative integers which are smaller than 10,00 阅读全文
posted @ 2017-01-05 08:02 KennyRom 阅读(292) 评论(0) 推荐(0) 编辑
摘要: Description 经过长时间的筹备工作,在Jourk,Ronny,Plipala,阿长,阿沈等人的努力下,DM实验室建立起自己的系列网站,其中包括三个大板块:DMOJ首页、DMOJ论坛、DMOJ博客。 作为一个大型的网站,数据的加工处理需要用到很多算法系统模块,通过这些模块对系统主数据库进行修 阅读全文
posted @ 2017-01-04 22:34 KennyRom 阅读(492) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页