1 2 3 4 5 ··· 39 下一页
摘要: http://docs.oracle.com/javase/6/docs/api/ 阅读全文
posted @ 2015-09-05 13:12 Painting、时光 阅读(167) 评论(0) 推荐(0) 编辑
摘要: set go= cin nu ts=4 sw=4 sts=4 noswapfile nobackup acd et cursorlineset backspace=eol,start,indentsyntax onset lines=90 columns=80map :!g++ -o2 -std=... 阅读全文
posted @ 2015-08-06 13:15 Painting、时光 阅读(178) 评论(1) 推荐(0) 编辑
摘要: 操作大全:http://wiki.ubuntu.org.cn/Ubuntu%E6%A1%8C%E9%9D%A2%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97使用终端编译方法:alt + cirl + T 打开终端 输入vim 即可打开vim再打开一个终端 输入g++ -v编... 阅读全文
posted @ 2015-06-09 20:52 Painting、时光 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1.hust上面两套树形DP2.hust上面两套区间DP3.学习哈希,巩固kmp,多刷几道熟悉4.刷hdu上面Dynamic Programming专题以及search专题5.学习二分图,网络流(√ ×)6.看大白书,把入门经典小白书例题刷一遍7.orz不知道什么时候能否刷完~~想到什么了再补充,在... 阅读全文
posted @ 2015-05-26 20:27 Painting、时光 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 转自perlman 原文链接:戳这里命令历史以:和/开头的命令都有历史纪录,可以首先键入:或/然后按上下箭头来选择某个历史命令。启动vim在命令行窗口中输入以下命令即可vim 直接启动vimvim filename 打开vim并创建名为filename的文件文件命令打开单个文件vim file同时... 阅读全文
posted @ 2015-04-11 19:47 Painting、时光 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 注意是正的偶数。。不包括零还有n=2的时候应该横着放#include #include using namespace std;void dfs(int n){ if(n == 1){ printf("1 1\n"); return; } else if... 阅读全文
posted @ 2015-11-16 21:15 Painting、时光 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 两次二分,第一次取得最小值,第二次往右二分看是否能到更右边注意超出部分land部分要去掉#include #include using namespace std;typedef long long ll;struct edge{ int x, y, w, h;}a[10010];bool c... 阅读全文
posted @ 2015-11-16 21:13 Painting、时光 阅读(153) 评论(0) 推荐(0) 编辑
摘要: struct P{ int x; bool operator a.x;//从小到大 }}; priority_queue q; 阅读全文
posted @ 2015-11-13 13:51 Painting、时光 阅读(262) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5037贪心,一个月没做题了,这道题卡了半天0 0~只要考虑清楚走两个时,为了保证最优,使得距离要是L+1,如果小于这个值,会导致能直接走到这里,就不是最优了题目要求最差情况下青蛙走的最佳情况,所以每次开始都使他只走... 阅读全文
posted @ 2015-11-10 19:48 Painting、时光 阅读(229) 评论(0) 推荐(0) 编辑
摘要: B. Pasha and Phonetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPasha has recently bought a new... 阅读全文
posted @ 2015-11-09 16:10 Painting、时光 阅读(271) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;int C[1100];const int MAXN = 10;void update(int x, int ans){ C[x] = ans ; while(x 0){ ret... 阅读全文
posted @ 2015-10-21 20:27 Painting、时光 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 模拟水题/************************************************* Author :Powatr* Created Time :2015/10/21 12:53:05* File Name :B.cpp ***************... 阅读全文
posted @ 2015-10-21 14:07 Painting、时光 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 仔细观察就会发现K = pow(2, m) + pow(2, m-1) 数要翻转一次/************************************************* Author :Powatr* Created Time :2015/10/20 18:06:07... 阅读全文
posted @ 2015-10-20 21:03 Painting、时光 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Bellman_ford:复杂度:O(VE) 边数用途:一条路,钱币的互换,寻找最小正权环,即一圈后能回到自己并且比自己大或者小,如果是大,d数组就开0,否则开inf适用条件:从源点到它的所有节点,适用于稀疏图(顶点多,边数少)原理:利用该顶点判断操作之后与操作之前的比较步骤:1.开一个d数组,以d... 阅读全文
posted @ 2015-10-10 20:29 Painting、时光 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 用来求组合数取模ll Lucas(ll n, ll m, int p){ return 1ll * comb(n%p, m%p) * Lucas(n/p, m/p, p);} 阅读全文
posted @ 2015-10-01 16:39 Painting、时光 阅读(135) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 39 下一页