DZY has a hash table with p buckets, numbered from 0 to p?-?1. He wants to insert n numbers, in the order they are given, into the hash table. For the ...
分类:
其他好文 时间:
2017-07-25 16:35:36
阅读次数:
180
This is yet another problem on regular bracket sequences. A bracket sequence is called regular, if by inserting "+" and "1" into it we get a correct m ...
分类:
其他好文 时间:
2017-07-24 17:40:35
阅读次数:
248
Consider two integer sequences f(n) = n! and g(n) = an, where n is a positive integer. For any integer a > 1 the second sequence is greater than the f ...
分类:
其他好文 时间:
2017-07-24 13:03:17
阅读次数:
150
题意:n张牌,选k个排成一圈,给出L,求出最大R 使得[L,R]内任意一个数 都可以由圈内连续m个数异或得到.n<=20,k<=6,a[i],L<=100. m为自己设定的. 暴力 总共有A(20,6)种方案 每种方案k^2算出异或数 TLE..先C(20,6)选出方案 若能过最优性剪支,在全排列更 ...
分类:
其他好文 时间:
2017-07-23 18:22:50
阅读次数:
118
英文题面: De Prezer loves movies and series. He has watched the Troy for like 100 times and also he is a big fan of Supernatural series.So, he did some re ...
分类:
其他好文 时间:
2017-07-22 23:44:01
阅读次数:
220
【题目链接】 http://www.lydsy.com/JudgeOnline/problem.php?id=4059 【题目大意】 一个序列被称为是不无聊的,仅当它的每个连续子序列存在一个独一无二的数字, 即每个子序列里至少存在一个数字只出现一次。 给定一个整数序列,请你判断它是不是不无聊的。 【 ...
分类:
其他好文 时间:
2017-07-21 23:25:19
阅读次数:
195
E DZY Loves Fibonacci Numbers In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation DZY loves Fibonacci nu ...
分类:
其他好文 时间:
2017-07-21 14:12:40
阅读次数:
361
D - DZY Loves Modification As we know, DZY loves playing games. One day DZY decided to play with a n?×?mmatrix. To be more precise, he decided to modi ...
分类:
其他好文 时间:
2017-07-21 10:51:07
阅读次数:
162
C - DZY Loves Sequences DZY has a sequence a, consisting of n integers. We'll call a sequence ai,?ai?+?1,?...,?aj (1?≤?i?≤?j?≤?n) a subsegment of the ...
分类:
其他好文 时间:
2017-07-21 10:27:08
阅读次数:
125
447C - DZY Loves Sequences 思路:dp 代码: ...
分类:
其他好文 时间:
2017-07-18 13:29:53
阅读次数:
116