码迷,mamicode.com
首页 >  
搜索关键字:c. dzy loves sequences    ( 1332个结果
1711 Number Sequence(kmp)
Problem Description Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Yo ...
分类:其他好文   时间:2016-05-13 12:34:49    阅读次数:244
hdu 5676 ztr loves lucky numbers
这道题是 BestCoder Round #82 (div.2) 的第二道题,题意很简单,首先定义一个幸运数的概念。幸运数就是至少包含一个4或者7,并且4的个数和7的个数必须相等,例如4、7,4477.....给你一个数,要你找到最小。做比赛的时候,我的同学一上来就模拟结果可想而知,我也想了下模拟,发现很容易漏掉一些情况,想到了暴力, 1...
分类:其他好文   时间:2016-05-13 04:36:22    阅读次数:169
HDU5274 Dylans loves tree(树链剖分+异或)
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=5274 题意很简单,输入以后,查询的时候 0 x y,是把x点改成y。 1 x y,是查询[x,y]中,数字出现的次数是否都是偶数,出现奇数的数字<=1。 都是偶数的话,输出-1,有奇数的话,输出奇数的权值。 思路:这题也是一个裸题,但是这题的线段树维护的比较巧妙,因为一个数异或自己偶数次就是0,...
分类:其他好文   时间:2016-05-13 04:06:36    阅读次数:206
EPI (Heap) Merge Multiple sorted arrays.
#include #include #include using namespace std; /* Write a program that takes an input a set of sorted sequences and compute the union of these sequences as a sorted sequence. For example:...
分类:其他好文   时间:2016-05-13 02:20:37    阅读次数:127
POJ Cutting Game(Nim博弈+grundy数)
Description Urej loves to play various types of dull games. He usually asks other people to play with him. He says that playing those games can show his extraordinary wit. Recently Urej takes a great...
分类:其他好文   时间:2016-05-13 01:47:55    阅读次数:141
BestCoder Round #82 (div.1) 1002 HDU 5677 dp-类似多重背包的思想
链接:戳这里 ztr loves substring Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Problem Description ztr love reserach substring.Today ,he has n string.Now ...
分类:其他好文   时间:2016-05-13 00:59:17    阅读次数:270
UVA 1584 - Circular Sequence(环状序列)(字典序)
1584 - Circular Sequence Time limit: 3.000 seconds Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence ``CGAGTCAGCT", that is, the last symbol ``...
分类:其他好文   时间:2016-05-13 00:24:17    阅读次数:208
【NBUToj】1667 - Hkhv Loves Sequences(模拟,严格递增子串)
[1667] Hkhv Loves Sequences 时间限制: 1000 ms 内存限制: 65535 K 问题描述 Hkhv has a sequence a, consisting of n integers. We'll call a sequence ai,ai+1,...,aj (1 Your task is to find the longest subs...
分类:其他好文   时间:2016-05-12 21:02:31    阅读次数:201
hdoj ztr loves lucky numbers 5676 (dfs模拟)
ztr loves lucky numbers Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 918    Accepted Submission(s): 389 Problem Description ztr love...
分类:其他好文   时间:2016-05-12 16:07:32    阅读次数:175
HDU 5658 CA Loves Palindromic(回文树)
HDU 5658 CA Loves Palindromic(回文树)...
分类:其他好文   时间:2016-05-12 15:50:22    阅读次数:224
1332条   上一页 1 ... 67 68 69 70 71 ... 134 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!