1050. Numbers & Letters
Constraints
Time Limit: 3 secs, Memory Limit: 32 MB
Description
In the early 80’s, a popular TV show on Dutch television was ‘Cijfers en Letters’ (Numbers and Let...
分类:
其他好文 时间:
2015-03-31 09:03:22
阅读次数:
142
1001. AlphacodeConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionAlice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: "Let's jus...
分类:
其他好文 时间:
2015-03-31 09:03:10
阅读次数:
154
一、元组类型是有N个任意类型的数据组成(N>=0),组成元组类型的数据可以称为“元素”二、元组的定义如:let position = (x:10.5,y:20) //两个元素的元组 let person = (name:"jack") //一个元素的元组 let data = () ...
分类:
编程语言 时间:
2015-03-30 23:02:54
阅读次数:
213
最大流量问题
对于最大流量问题的详细分析和理论参见算法导论,Ford-Fulkerson算法,伪代码如下:
Set
Ftotal = 0
Repeat until there is no path from s to t:
Run DFS from s to find a flow path to t
Let
cp be the minimum...
分类:
编程语言 时间:
2015-03-30 21:09:31
阅读次数:
447
1009. K-based Numbers
Time limit: 1.0 second
Memory limit: 64 MB
Let’s consider K-based numbers, containing exactly N digits. We define a number to be valid if itsK-based notation doesn’t c...
分类:
其他好文 时间:
2015-03-30 09:30:12
阅读次数:
116
Saving James Bond
Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 2405 Accepted Submission(s): 454
Problem Description
This time let...
分类:
其他好文 时间:
2015-03-29 16:39:22
阅读次数:
144
Problem Description
Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not higher and not to the right of the given star. ...
分类:
编程语言 时间:
2015-03-29 16:36:56
阅读次数:
149
练习3-71原文代码(define (Ramanujan s)
(define (stream-cadr s) (stream-car (stream-cdr s)))
(define (stream-cddr s) (stream-cdr (stream-cdr s)))
(let ((scar (stream-car s))...
分类:
其他好文 时间:
2015-03-29 12:21:38
阅读次数:
122
练习3-70原文代码(define (merge-weighted s1 s2 weight)
(cond ((stream-null? s1) s2)
((stream-null? s2) s1)
(else
(let ((cars1 (stream-car s1))
(cars2 (stream-car s2)))
(cond (...
分类:
其他好文 时间:
2015-03-29 10:50:12
阅读次数:
132
在学习算法的过程中,我们难免会接触很多和排序相关的算法。总而言之,对于任何编程人员来说,基本的排序算法是必须要掌握的。从今天开始,我们将要进行基本的排序算法的讲解。Are you ready?Let‘s go~~~1、排序算法的基本概念的讲解 时间复杂度:需要排序的的关键字的比较次数和相应的移动的....
分类:
编程语言 时间:
2015-03-28 12:56:53
阅读次数:
180