- 博客(35)
- 收藏
- 关注
原创 HTK Example: Acoustic Event Detection
HTK是Speech领域常用的一套工具,可以进行音频标注、特征提取以及HMM学习。安装流程:http://blog.youkuaiyun.com/yanli0823/article/details/8186382我在Windows下安装好之后,想使用HSLab进行标注时曾经报错,原因是makefile文件中需要修改,参考:http://blog.youkuaiyun.com/xiaoding133
2013-02-07 13:39:08
1272
原创 解决SourceInsight两个问题
Problem1: too many files openSource Insight不支持自动关闭窗口,故需手动关掉所有窗口。Window -> Window List -> Close WindowProblem2: 添加.s文件1.允许导入.s文件:Options -> Document Options Documtent
2011-12-03 23:00:59
1450
原创 二维数组动态分配
我天真地以为,二维数组动态分配嘛,就这样好了:int **array;array = new [height][width];回收嘛:delete [][] array;结果就挂了TOT根本就不识别[][]啊。二维数组作为参数传递的时候,形式参数也是这个道理,不能是int [][],而应该是int [][width]。好了下面是
2011-11-15 22:44:00
446
原创 Party Lamps
Problem:http://ace.delos.com/usacoprob2?a=GDaP3qeGiYp&S=lampsMy Answer:/*ID:iby071TASK:lampsLANG:C++*/#include#includeusin
2011-09-18 11:43:33
502
原创 Runaround Numbers
Problem:http://ace.delos.com/usacoprob2?a=GDaP3qeGiYp&S=runroundAnswer:/*ID:iby071TASK:runroundLANG:C++*/#include#includeu
2011-09-18 11:41:52
426
原创 Subset Sums
Problem:http://ace.delos.com/usacoprob2?a=GDaP3qeGiYp&S=subsetMy Answer:/*ID:iby071LANG:C++TASK:subset*/#include#includeus
2011-09-18 11:39:57
366
原创 Preface Numbering
Problem:http://ace.delos.com/usacoprob2?a=GDaP3qeGiYp&S=prefaceMy Answer:/*ID:Iby071LANG:C++TASK:preface*/#include#includ
2011-09-18 11:37:13
495
原创 Hamming Code
Problem:http://ace.delos.com/usacoprob2?a=GDaP3qeGiYp&S=hammingMy Answer:/*ID:iby071LANG:C++TASK:hamming*/#include#includ
2011-09-18 11:35:00
401
原创 Healthy Holsteins
Problem:Healthy HolsteinsFarmer John prides himself on having the healthiest dairy cows in the world. He knows the vitamin con
2011-09-18 11:32:39
613
原创 Sorting a Three-Valued Sequence
Problem:Sorting a Three-Valued Sequence Sorting is one of the most frequently performed computational tasks. Consider the specia
2011-09-18 11:27:30
509
原创 Ordered Fractions
Problem:Ordered FractionsConsider the set of all reduced fractions between 0 and 1 inclusive with denominators less than or equal
2011-09-18 11:22:29
805
原创 关于"显示桌面.scf"
存储位置: C:\WINDOWS\system32文件名: 显示桌面.scf文件内容: [Shell]Command=2IconFile=explorer.exe,3[Taskbar]Command=ToggleDesktop
2011-07-29 23:30:50
399
原创 The Castle
Problem:The Castle<br />IOI'94 - Day 1<br />In a stroke of luck almost beyond imagination, Farmer John was sent a ticket to the Irish Sweepstakes (really a lottery) for his birthday. This ticket turned out to have only the winning number for the lottery! F
2011-01-04 22:42:00
511
原创 Checker Challenge
Problem:Checker ChallengeExamine the 6x6 checkerboard below and note that the six checkers are arranged on the board so that one and only one is placed in each row and each column, and there is never more than one in any diagonal. (Diagonals run from south
2011-01-04 22:38:00
492
转载 位运算教程
<br />转自:http://www.matrix67.com/blog<br /> <br /><br /> <br />位运算简介及实用技巧(一):基础篇<br />去年年底写的关于位运算的日志是这个Blog里少数大受欢迎的文章之一,很多人都希望我能不断完善那篇文章。后来我看到了不少其它的资料,学习到了更多关于位运算的知识,有了重新整理位运算技巧的想法。从今天起我就开始写这一系列位运算讲解文章,与其说是原来那篇文章的follow-up,不如说是一个remake。当然首先我还是从最基础的东西说起。<br
2011-01-03 11:45:00
872
原创 Superprime Rib
<br />Problem:<br /> Superprime Rib<br />Butchering Farmer John's cows always yields the best prime rib. You can tell prime ribs by looking at the digits lovingly stamped across them, one by one, by FJ and the USDA. Farmer John ensures that a purchaser of
2011-01-02 21:28:00
700
原创 Prime Palindromes
Problem:Prime PalindromesThe number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as backward). Write a program that finds all prime palindromes in the range of two supplied numbers a
2011-01-02 18:31:00
600
原创 Number Triangles
Problem: Number TrianglesConsider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a route that starts at the top and ends somewhere on the base. Each step can go either diagonally down to th
2011-01-02 16:04:00
385
原创 0xC00000FD:Stack Overflow
<br />Stack Overflow:栈溢出问题<br /> <br /> <br />一般是申请过大的数组造成的。<br />例如int a[1000][1000];<br />解决的办法就是:用动态申请new在堆里。
2011-01-02 15:58:00
1151
原创 Mother's Milk
Problem:Mother's MilkFarmer John has three milking buckets of capacity A, B, and C liters. Each of the numbers A, B, and C is an integer from 1 through 20, inclusive. Initially, buckets A and B are empty while bucket C is full of milk. Sometimes, FJ pours
2011-01-02 11:38:00
1491
原创 Arithmetic Progressions
Problem:Arithmetic ProgressionsAn arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=0,1,2,3,... . For this problem, a is a non-negative integer and b is a positive integer. Write a program that finds all arithmetic progressio
2010-12-28 16:24:00
656
转载 第(前)k大数问题
第(前)k数问题转自:http://summerbell.javaeye.com/blog/510394所谓“第(前)k大数问题”指的是在长度为n(n>=k)的乱序数组中S找出从大到小顺序的第(前)k个数的问题。解法1:我们可以对这个乱序数组按照从大到小先行排序,然后取出前k大,总的时间复杂度为O(n*logn+k)。解法2:利用选择排序或交互排序,K次选择后即可得到第k大的数。总的时间复杂度为O(n*k)解法3:利用快速排序的思想,从数组S中随机找出一个元素X,把数组分为两部分Sa和Sb。Sa中的元素大于
2010-12-26 18:07:00
505
原创 The Clocks
Problem:The ClocksIOI'94 - Day 2Consider nine clocks arranged in a 3x3 array thusly: |-------| |-------| |-------| | | | | | | | |---O | |---O | | O | | | | | | |
2010-12-12 22:49:00
480
原创 Packing Rectangles
Problem:Packing RectanglesIOI 95The six basic layouts of four rectangles Four rectangles are given. Find the smallest enclosing (new) rectangle into which these four may be fitted without overlapping. By smallest rectangle, we mean the one with the smalles
2010-12-12 22:44:00
957
原创 Prime Cryptarithm
Problem:Prime CryptarithmThe following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions marked with *. If the set of prime digits {2,3,5,7} is selected, the cryptarithm is
2010-12-12 22:39:00
942
原创 Calf Flac
Problem:Calf Flac<br /><br />It is said that if you give an infinite number of cows an infinite number of heavy-duty laptops (with very large keys), that they will ultimately produce all the world's great palindromes. Your job will be to detect these bovin
2010-12-12 22:37:00
855
原创 Barn Repair
Problem:Barn RepairIt was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacation, so the barn was not completely full. The cows spend the night in stalls that are arran
2010-12-10 23:10:00
379
原创 Mixing Milk
Problem:Mixing MilkSince milk packaging is such a low margin business, it is important to keep the price of the raw product (milk) as low as possible. Help Merry Milk Makers get the milk they need in the cheapest possible manner. The Merry Milk Makers comp
2010-12-10 23:02:00
403
原创 Palindromic Squares
Problem:Palindromic SquaresRob Kolstad Palindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome. Given a number base B (2 Print both the number and its square in
2010-12-10 22:57:00
317
原创 Name That Number
Problem:Name That NumberAmong the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The cow hands don't appreciate the advantage of this filing system, though, and wish to call the membe
2010-12-10 22:50:00
320
原创 Transformations
Problem:Transformations<br /><br />A square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum transformation that has been applied to the original p
2010-12-10 22:46:00
265
原创 Milking Cows
Problem:Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at time 1000. The second farmer begins at time 700 and ends
2010-12-08 21:22:00
430
原创 Broken Necklace
Problem:Broken NecklaceYou have a necklace of N red, white, or blue beads (3
2010-12-08 21:09:00
268
原创 Greedy Gift Givers
Problem:Greedy Gift GiversA group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to any or all of the other friends. Likewise, each friend might or might not rec
2010-12-08 20:39:00
320
原创 Your Ride Is Here
Problem:Your Ride Is HereIt is a well-known fact that behind every good comet is a UFO. These UFOs often come to collect loyal supporters from here on Earth. Unfortunately, they only have room to pick up one group of followers on each trip. They do, ho
2010-12-08 20:25:00
292
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人