Description
0 s, 1 s and ? Marks
Given a string consisting of 0, 1 and ? only, change all the
? to 0/1, so that the size of the largest group is minimized. A group is a subs...
分类:
其他好文 时间:
2014-08-11 11:57:42
阅读次数:
197
Charlie's Change
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 2978
Accepted: 844
Description
Charlie is a driver of Advanced Cargo Movement, Ltd. Charlie ...
分类:
其他好文 时间:
2014-08-09 11:48:57
阅读次数:
358
题意:有5中货币,价值分别为 50-cent, 25-cent, 10-cent, 5-cent,1-cent,数量都为无限个,
给定一个数 n,求用上述货币组成价值为 n 的方法有多少?
分析:因为n母函数 或 dp 打表
对于dp状态方程为: dp[j]+=dp[j-c[i]]
#include
int c1[7500],c2[7500],w[5...
分类:
其他好文 时间:
2014-08-08 18:19:26
阅读次数:
261
Edit the following file manually and change the path to the icons folder (it appears 2 times in the file)File to edit:\wamp\bin\apache\apache2.2.6\con...
分类:
其他好文 时间:
2014-08-08 16:00:36
阅读次数:
192
高中概率的几何概型,这也叫作题,不过输出真的很坑。
题目大意:
n*m个边长为t的正方形组成的矩形。往矩形上抛一个直径为c的硬币,问覆盖1,2,3,4个矩形的概率为多少?
解题思路:
计算出覆盖1,2,3,4个矩形时硬币圆心可以在的位置区域。就能求出概率了~
下面是代码:
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2014-08-08 12:55:25
阅读次数:
180
1 pattern 模式,方式n eg. A change in the pattern of his breathing became apparent.他的呼吸方式明显起了变化。 图案 eg. A golden robe embroidered with red an purple thread...
分类:
其他好文 时间:
2014-08-08 08:26:57
阅读次数:
273
在网页上要操作文件通常会使用INPUT[type=file]控件,但这个控件的设计很蛋疼。它不像其它编程语言中文件选择后会触发一个事件,只是让上面的文字改变,而这个改变可能会触发change事件而已。对于文字没改变的选择,change事件则不会触发。 当INPUT[type=file]控件上已经选....
分类:
其他好文 时间:
2014-08-07 18:28:30
阅读次数:
160
题意:你有N种硬币,每种价值A[i],每种数量C[i],问。在不超过M的情况下,我们用这些硬币,付款有多少种情况。也就是:1,2,3,4,5,....,M这么多种情况下,你能用你的硬币不找钱,付款多少种情况。
例如:
你有一种硬币,价值2,个数2,那么 你是不能付款 3元的。。你只能付款2,或者4元。。
OK,题意差不多就是这样啦。
那么这里有两种方式!
分析:
那么这里我们可以用多重...
分类:
其他好文 时间:
2014-08-07 15:56:00
阅读次数:
374
Let AJAX change this text通过 AJAX 改变内容
分类:
其他好文 时间:
2014-08-07 12:42:10
阅读次数:
215
1 #!/bin/bash - 2 #=============================================================================== 3 # 4 # FILE: hex_change.sh 5 # 6 # ...
分类:
系统相关 时间:
2014-08-07 02:58:48
阅读次数:
384