- 博客(212)
- 收藏
- 关注
原创 zoj 3829 Known Notation (The 2014 ACM-ICPC Asia Mudanjiang Regional Contest K题) 贪心
题意:思路:// file name: zoj3829.cpp //// author: kereo //// create time: 2014年10月15日 星期三 19时46分11秒 ////***********************************//#include#include#include#include#include#include#
2014-10-15 22:40:04 770
原创 zoj3822 Domination (The 2014 ACM-ICPC Asia Mudanjiang Regional Contest D题)概率dp
题意:思路:
2014-10-15 22:27:37 789
原创 LA6576 VivoParc (2013-2014 ACM-ICPC Southwestern Europe Regional Contest G题) 搜索
题意:思路:
2014-10-14 18:34:09 976
原创 sgu109 Magic of David Copperfield II 构造
// file name: sgu109.cpp //// author: kereo //// create time: 2014年10月14日 星期二 12时21分23秒 ////***********************************//#include#include#include#include#include#include#include#in
2014-10-14 13:00:39 937
原创 LA6575 Odd and Even Zeroes (2013-2014 ACM-ICPC Southwestern Europe Regional Contest F题) 规律
题意:思路:// file name: LA6575.cpp //// author: kereo //// create time: 2014年10月08日 星期三 20时13分18秒 ////***********************************//#include#include#include#include#include#include#i
2014-10-09 16:48:38 1372
原创 hdu2871 Memory Control 线段树区间合并+STL删除插入
题意:有n个连续的内存单位编号从1到n。有4种操作:(1)Reset 释放所有内存 (2)New x 新建一个长度为x的连续内存块 (尽可能左),输出内存块的最左端 (3)Free x 释放编号为x的内存单位所在的内存块,输出内存块的区间左右端 (4) Get x 获取从左往右的第x个内存块,输出内存块的最左端。思路:线段树区间合并。和poj3667相似,。线段树维护四个信息:
2014-09-10 00:07:51 788
原创 poj2409 Let it Bead polya定理
题意:用k种颜色对n个珠子构成的环上色,旋转翻转后相同的只算一种,求不等价的着色方案数。思路:polya的
2014-09-05 00:50:27 721
原创 poj1050 To the Max dp
题意:求一个矩阵的最大子矩阵和。思路:首先预处理出sum[ i ][ j ][ k ],即以(i,j)为最上端向下连续k个数的和。接着设dp[ i ][ j ][ k ]为以(i,j)为左上端向下连续k行的最大矩阵和,那么我们可以很容易写出状态转移方程:dp[ i ][ j ][ k ]=max( 0,dp[ i ][ j + 1 ][ k ] ) + sum[ i ][ j ][ k ]
2014-09-04 18:09:17 597
原创 poj3667 Hotel 线段树 区间合并
题意:// file name: poj3667.cpp //// author: kereo //// create time: 2014年09月02日 星期二 20时37分55秒 ////***********************************//#include#include#include#include#include#includ
2014-09-02 23:59:31 665
原创 codeforces 38G Queue splay
题意:有n个人// file name: codeforces38G.cpp //// author: kereo //// create time: 2014年08月26日 星期二 08时40分02秒 ////***********************************//#include#include#include#include#inclu
2014-08-27 08:11:52 1269
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人