This year at Monsters University it is decided to arrange Scare Games. At the Games all campus gathers at the stadium stands, and the Scare program st ...
分类:
其他好文 时间:
2017-04-30 17:11:26
阅读次数:
199
题意:给出n长度的数列,其实1的连续个数不超过a,2的连续个数不超过b。 析:dp[i][j][k] 表示前 i 个数,以 j 结尾,并且连续了k个长度,要用滚动数组,要不然MLE。 代码如下: ...
分类:
其他好文 时间:
2017-04-30 16:15:51
阅读次数:
154
After moving from his parents’ place Zhenya has been living in the University dormitory for a month. However, he got pretty tired of the curfew time a ...
分类:
其他好文 时间:
2017-04-30 16:14:41
阅读次数:
266
传送门 Amount of Degrees Time limit: 1.0 secondMemory limit: 64 MB Amount of Degrees Time limit: 1.0 secondMemory limit: 64 MB Description Create a code ...
分类:
其他好文 时间:
2017-04-28 20:32:36
阅读次数:
180
闪回版本查询,用到了附加日志 闪回事务查询 http://blog.csdn.net/laoshangxyc/article/details/12405459 这个博客的备份与恢复可以参考 ################################### http://blog.itpub.n ...
分类:
数据库 时间:
2017-04-28 20:16:06
阅读次数:
258
Administration of the labyrinth has decided to start a new season with new wallpapers. For this purpose they need a program to calculate the surface a ...
分类:
其他好文 时间:
2017-04-27 23:08:32
阅读次数:
240
A nudnik photographer 大意: 对1到N这些数进行排列,1必需要在最左边。相邻的两个数之间的差值不能超过2,问有多少种排列的方法。 思路: 对座位进行DP,当第一个是1,第二个是2的时候,组合为dp[i-1]。当第一个是1,第二个是3的时候,第三个也确定了是2。组合为dp[i-3 ...
分类:
其他好文 时间:
2017-04-24 23:00:14
阅读次数:
194
ural1382 直接套用 2SAT模板 缩点 拓扑排序。。。 ...
分类:
其他好文 时间:
2017-04-24 18:55:09
阅读次数:
162
给一个n,要求构造一个矩阵,满足: 1、矩阵大小为(2n+1)*(2n+1) 2、沿对角线对称 3、每一个数的值在[0,2n+1]上 4、每行每列没有反复的值 手动写了一下 直接找到规律。。 #include<cstdio> #include<cstring> using namespace std ...
分类:
其他好文 时间:
2017-04-17 16:19:44
阅读次数:
134
题目来源: Ural 1302 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注 题目来源: Ural 1302 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 题目来源: Ural 1302 基准时间限制:1 秒 空 ...
分类:
其他好文 时间:
2017-04-16 21:46:41
阅读次数:
170