码迷,mamicode.com
首页 >  
搜索关键字:strange way to expre    ( 2753个结果
UVA 712 - S-Trees
题目如下: S-Trees  A Strange Tree (S-tree) over the variable set is a binary tree representing a Boolean function .Each path of the S-tree begins at the root node and consists ...
分类:其他好文   时间:2014-06-05 11:04:37    阅读次数:248
POJ 3259 Wormholes (图论---最短路 Bellman-Ford || SPFA)
链接:http://poj.org/problem?id=3259 Description While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path t...
分类:其他好文   时间:2014-06-05 05:26:33    阅读次数:240
How to estimate the time required for a program.
Once an algorithm is given for a problem and decided to be correct, an important step is to determine how much in the way of resources,such as time or space, the algorithm will require.         ...
分类:其他好文   时间:2014-06-05 02:14:29    阅读次数:306
Iterative (non-recursive) Merge Sort
An iterative way of writing merge sort: #include using namespace std; void merge(int A[], int l, int r, int e, int B[]) { int i = l, j = r, k = l; while (i<r && j A[j]) B[k++] =...
分类:其他好文   时间:2014-06-03 02:33:24    阅读次数:215
Iterative (non-recursive) Quick Sort
An iterative way of writing quick sort: #include #include #include using namespace std; void quickSort(int A[], int n) { stack> stk; stk.push(make_pair(0, n-1)); while (!stk.empty()) { pair ...
分类:其他好文   时间:2014-06-03 00:16:43    阅读次数:357
HDU - 4813 Hard Code (长春赛区水题)
Description Some strange code is sent to Da Shan High School. It's said to be the prophet's note. The note is extremely hard to understand. However, Professor Meng is so smart that he successfully ...
分类:其他好文   时间:2014-06-01 09:18:38    阅读次数:246
Web Navigation
DescriptionStandard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these features i...
分类:Web程序   时间:2014-05-31 21:16:40    阅读次数:279
poj 2891 Strange Way to Express Integers
http://poj.org/problem?id=2891这道题的题意是:给你多个模性方程组:m mod ai=ri 求最小的m;中国剩余定理 1 #include 2 #include 3 #include 4 #define ll long long 5 using namespace ...
分类:其他好文   时间:2014-05-31 19:06:39    阅读次数:191
UVALIVE 6450 Social Advertising
You have decided to start up a new social networking company. Other existing popular social networksalready have billions of users, so the only way to...
分类:其他好文   时间:2014-05-31 04:34:45    阅读次数:275
以优美方式编写JavaScript代码
英文原文:CoffeeScript: The beautiful way to write JavaScript 我用 JavaScript 编程很多年了,写了大量的 JavaScript 代码,即便是我这样的经历,但我仍然还在努力地去写出更优美的 JavaScript 代码,在这篇文章中,我将探....
分类:编程语言   时间:2014-05-29 19:43:44    阅读次数:411
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!