- 博客(19)
- 问答 (1)
- 收藏
- 关注
原创 uva 11488 Hyper Prefix Sets
字典树水题。。。。。#include#include#include#include#include#include#include#includeusing namespace std;#define rep(i,s,t) for(int i=s;i<t;i++)#define N 500000struct node{ int next[2],num,len;
2014-04-30 19:54:38 1056
原创 poj2763 Housewife Wind
题目:http://poj.org/problem?id=2763把树化成线段,x就好搞了....
2014-04-30 12:52:48 1027
原创 poj 2774 Long Long Message
题目:http://poj.org/problem?id=2774求两个字符串的最长公共子串
2014-04-30 10:38:13 652
原创 彩色石子
题目详情有一行彩色的棋子,每个棋子的颜色是k种颜色之一。你不能改变棋子的顺序,但是可以移走一些棋子。问至少移走多少个石子,才能使得两个同色的石子之间没有其他颜色的棋子?输入格式:多组数据,每组数据两行,第一行是两个整数n和k, 1下一行是n个在[1..k]范围内的正整数,代表每个棋子的颜色。输出格式:每组测试数据输出一行包含一个整数,表示至少移走
2014-04-30 10:00:37 1192
原创 poj 2836 Rectangular Coverin
题目:http://poj.org/problem?id=2836在一个二位平面内,有y
2014-04-30 09:09:55 1086
原创 uva 11525 Permutation
题目:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2520找个简单的例子,k=3的时候: 2! 1!
2014-04-29 17:28:31 655
原创 hdu 4770 Lights Against Dudely
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4770
2014-04-28 22:32:38 1277
原创 Coder-Strike 2014 - Finals (online edition, Div. 2) D.Bug in Code
一道題意蠻好理解的題......想法:記錄下每個人被懷疑的
2014-04-23 09:02:07 809
原创 编程之美初赛第一场 树
题目2 : 树时间限制:4000ms单点时限:2000ms内存限制:256MB描述有一个N个节点的树,其中点1是根。初始点权值都是0。一个节点的深度定义为其父节点的深度+1,。特别的,根节点的深度定义为1。现在需要支持一系列以下操作:给节点u的子树中,深度在l和r之间的节点的权值(这里的深度依然从整个树的根节点开始计算),都加上一
2014-04-19 16:29:56 924
原创 Problem C. Minesweeper Master
ProblemMinesweeper is a computer game that became popular in the 1980s, and is still included in some versions of the Microsoft Windows operating system. This problem has a similar idea, but it do
2014-04-13 10:23:41 925
空空如也
求教,hadoop-2.2.0升级hadoop-2.6.0。
2015-09-06
TA创建的收藏夹 TA关注的收藏夹
TA关注的人