03 2010 档案

[ACM]sorting algotithm
摘要:Time Limit: 1000MS Memory Limit: 65535KBTotal Submissions: 143 Accepted: 28 Description: One of the fundamental problems of computer science is ordering a list of items. There're a plethora of soluti... 阅读全文

posted @ 2010-03-28 15:05 小橋流水 阅读(196) 评论(0) 推荐(0) 编辑

[ACM]Ultra-QuickSort
摘要:Time Limit: 7000MS Memory Limit: 65536KBTotal Submissions: 20 Accepted: 7 Description: In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n dis... 阅读全文

posted @ 2010-03-28 14:57 小橋流水 阅读(183) 评论(0) 推荐(0) 编辑

[ACM]伪素数
摘要:Time Limit: 1000MS Memory Limit: 65536KBTotal Submissions: 81 Accepted: 9 Description:Fermat's theorem states that for any prime number p and for any integer a > 1, a^p == a (mod p). That is, if we ra... 阅读全文

posted @ 2010-03-28 14:28 小橋流水 阅读(317) 评论(0) 推荐(0) 编辑

[ACM]积木分发
摘要:Time Limit: 1000MS Memory Limit: 65535KBTotal Submissions: 539 Accepted: 52 Description:歌手Pancakes到幼儿园跟小朋友玩,她到达的时候小朋友们正在争积木,小朋友都想要更多的积木砌一个自己喜欢的图形,砌完就可以和Pancakes合照。同时,Pancakes手上还有一些积木,她可以把手上的这些积木全部给一个小... 阅读全文

posted @ 2010-03-28 14:12 小橋流水 阅读(332) 评论(0) 推荐(0) 编辑

中国余数定理
摘要:1 void extended_gcd(int a,int b,int *x,int *y) 2 { 3 int t; 4 if(b==0) 5 { 6 *x = 1; 7 *y = 0; 8 return ; 9 }10 extended_gcd(b,a%b,x,y);11 t = *x;12 ... 阅读全文

posted @ 2010-03-27 07:42 小橋流水 阅读(351) 评论(0) 推荐(0) 编辑

mergsort.c
摘要:时间复杂度O(n) #include #include void merge_sort_inner(int A[], int p, int r){ int q, i, j, k, n1, n2; int temp, *L, *R; if(p < r) { q = (p + r) / 2; merge_sort_inner(A, p, q); ... 阅读全文

posted @ 2010-03-26 07:02 小橋流水 阅读(205) 评论(0) 推荐(0) 编辑

[转] quicksort.c
摘要:#include #include #include typedef TYPE T; void quicksort(T* data, int N) { int i, j; T v, t; if( N v) { } if( i >= j ) break; t = data[i]; data[i] = data[j]; data[j] = t; } t = data[i-1]; data... 阅读全文

posted @ 2010-03-23 04:08 小橋流水 阅读(113) 评论(0) 推荐(0) 编辑

软件破解学习备忘
摘要:易语言程序破解小技巧 易语言程序在查壳的时候会被认为是c++程序,这点是需要注意的。 一般下断在MessageBoxA处,也可下在GetWindowTextA。OD载入,直到断点,然后很快应该能到达程序的领空,然后用查找字符串插件可以查找到很多字符串,然后就可以轻松地利用常用的方法破解该软件。 阅读全文

posted @ 2010-03-11 10:57 小橋流水 阅读(142) 评论(0) 推荐(0) 编辑

导航

统计

点击右上角即可分享
微信分享提示