,pragma与no-cache用于定义页面缓存,不缓存页面(为了提高速度一些浏览器会缓存浏览者浏览过的页面,通过下面的定义,浏览器一般不会缓存页面,而且浏览器无法脱机浏览.),常见的取值有private、no-cache、max-age、must-revalidate等,默认为private,其作...
分类:
Web程序 时间:
2014-08-03 17:41:15
阅读次数:
256
代码:import java.util.ArrayList;import java.util.List;public class Bit { int max; int min; int[] arr; public Bit(int[] arrInput) { //...
分类:
其他好文 时间:
2014-08-03 17:37:45
阅读次数:
216
HDU 1561The more, The Better题目大意就不说了直接DP[i][j]表示i为跟节点的子树上攻克j个城堡的所能获得的最多宝物的数量DP[fa][j] = MAX{DP[fa][i-k] + DP[child][k]};首先一个问题就是说如果子树u下的任意子节点被选择了,那么u是...
分类:
其他好文 时间:
2014-08-03 15:09:55
阅读次数:
251
DP题,这题居然是1星题!!太大打击了 1 #include 2 #include 3 using namespace std; 4 #define N 205 5 char s[N]; 6 int sum[N][2],dp[N]; 7 int main(){ 8 int t,l,sum...
分类:
其他好文 时间:
2014-08-03 15:04:55
阅读次数:
217
LH很聪明。每次这种题目,他想想就有结果了,我得琢磨一阵才恍然大悟。诶,智商不在一个等级啊。其实是用做差,一直用新读入的减去前面2个数之差。sum为0就满足。#includeusing namespace std;int g[10010];int main(){ int t,m; cin...
分类:
其他好文 时间:
2014-08-03 15:03:05
阅读次数:
168
1版本类型1.1正式版本Enhance:增强版或者加强版属于正式版Fullversion:完全版属于正式版Release:发行版,有时间限制Upgrade:升级版Retail:零售版Plus:增强版,不过这种大部分是在程序界面及多媒体功能上增强。1.2测试版本Alphal:内部测试版Beta:外部测...
分类:
其他好文 时间:
2014-08-03 12:34:15
阅读次数:
266
1计算1+2+3...+99+100的和.a---intsum=0,i=0;while(i<101){sum=sum+i;i++;}printf("%d",sum);b--intsum=0,i=1;//存储值do{sum=sum+i;//现执行一次循环体,在判断条件i++;}while(i<101);printf("%d",sum);2//100以内13倍数之和intsum=0,i=1;while(i<101){if(i%13==0){//..
分类:
其他好文 时间:
2014-08-03 08:01:25
阅读次数:
244
An intuitive 2D DP: dp[i][j] = min(grid[i-1][j-1] + dp[i-1][j], grid[i-1][j-1] + dp[i][j+1])class Solution {public: int minPathSum(vector > &grid) ...
分类:
其他好文 时间:
2014-08-03 07:50:54
阅读次数:
254
题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit i....
分类:
编程语言 时间:
2014-08-03 07:49:34
阅读次数:
246
题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the....
分类:
编程语言 时间:
2014-08-03 04:40:04
阅读次数:
351