摘要: H - Fire Drill Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 5066DescriptionJoko is taking part in a fi... 阅读全文
posted @ 2015-01-17 19:45 qscqesze 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 最近在做单调队列,发现了最长上升子序列O(nlogn)的求法也有利用单调队列的思想。 最长递增子序列问题:在一列数中寻找一些数,这些数满足:任意两个数a[i]和a[j],若id[len],则直接加入到d的末尾,且len++;(利用性质2) 否则,在d中二分查找,找到第一个比x小的数d[k],并d[k... 阅读全文
posted @ 2015-01-17 19:07 qscqesze 阅读(456) 评论(0) 推荐(0) 编辑
摘要: D. Polycarp's Picture Gallerytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp loves not ... 阅读全文
posted @ 2015-01-17 18:31 qscqesze 阅读(310) 评论(0) 推荐(0) 编辑
摘要: C. Fleatime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt is known that fleas in Berland can jum... 阅读全文
posted @ 2015-01-17 18:06 qscqesze 阅读(458) 评论(0) 推荐(0) 编辑
摘要: D. Numberstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day Anna got the following task at... 阅读全文
posted @ 2015-01-17 18:01 qscqesze 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1078 最小生成树 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 白银 Silver 题目描述 Description农民约翰被选为他们镇的镇长!他其中一个竞选承诺就是在镇上建立起互联网,并连接到所有的农场。当然,他需要你的 帮助。 约翰已经给他的农场安排了一条高速的网络... 阅读全文
posted @ 2015-01-15 21:02 qscqesze 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 004 四子连棋 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题目描述 Description在一个4*4的棋盘上摆放了14颗棋子,其中有7颗白色棋子,7颗黑色棋子,有两个空白地带,任何一颗黑白棋子都可以向上下左右四个方向移动到相邻的空格,这叫行棋一步,黑... 阅读全文
posted @ 2015-01-15 20:24 qscqesze 阅读(720) 评论(3) 推荐(1) 编辑
摘要: 在我们日常上网浏览网页的时候,经常会看到一些好看的图片,我们就希望把这些图片保存下载,或者用户用来做桌面壁纸,或者用来做设计的素材。 我们最常规的做法就是通过鼠标右键,选择另存为。但有些图片鼠标右键的时候并没有另存为选项,还有办法就通过就是通过截图工具截取下来,但这样就降低图片的清晰度。好吧~!... 阅读全文
posted @ 2015-01-15 03:12 qscqesze 阅读(8997) 评论(2) 推荐(2) 编辑
摘要: 迷宫城堡Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8211Accepted Submission(s): 3669Problem Descri... 阅读全文
posted @ 2015-01-14 22:24 qscqesze 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Prime PathTime Limit:1000MSMemory Limit:65536KTotal Submissions:9982Accepted:5724Description The ministers of the cabinet were quite upset by the mess... 阅读全文
posted @ 2015-01-14 10:36 qscqesze 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Goffi and Squary PartitionTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 856Accepted Submission(s... 阅读全文
posted @ 2015-01-12 14:23 qscqesze 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Sum Sum SumTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 290Accepted Submission(s): 194Problem D... 阅读全文
posted @ 2015-01-12 11:56 qscqesze 阅读(251) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std;int main(){ // 加载Haar特征检测分类器 // haarcascade_frontalface_alt.xml系OpenCV自带的分类器 ... 阅读全文
posted @ 2015-01-11 15:31 qscqesze 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;using namespace cv;IplImage *g_psrcimage,*g_pcannyima;void on_trackbar(int threshold){ cvCanny(g_psrcim... 阅读全文
posted @ 2015-01-11 14:22 qscqesze 阅读(305) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;using namespace cv;int main(){ const char *windowsrctitle = "before"; const char *windowsdstitle = "... 阅读全文
posted @ 2015-01-10 20:40 qscqesze 阅读(288) 评论(0) 推荐(0) 编辑
摘要: Harry and Magical ComputerTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 499Accepted Submission(s... 阅读全文
posted @ 2015-01-10 20:07 qscqesze 阅读(268) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;using namespace cv;int main(){ char* name = "1.jpg"; Mat img = imread("D:\\1.jpg"); //填入绝对地址,其实相对... 阅读全文
posted @ 2015-01-10 13:54 qscqesze 阅读(270) 评论(0) 推荐(0) 编辑
摘要: A. Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFurik and Rubik love playing computer game... 阅读全文
posted @ 2015-01-08 14:47 qscqesze 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Topcoder SRM 643 Div1 250Problem 给一个整数N,再给一个vectorv; N可以表示成若干个素数的乘积,N=p0*p1*p2*......*pn,我们假设p0,p1,...,pn是单调不降的,那么v里存储的是下标为偶数 的N的质因数p0,p2,p4,...,p(2k)... 阅读全文
posted @ 2014-12-29 00:34 qscqesze 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Sequence IITime Limit: 5000/2500 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 652Accepted Submission(s): 164Problem D... 阅读全文
posted @ 2014-12-21 09:48 qscqesze 阅读(335) 评论(0) 推荐(0) 编辑
摘要: SequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 712Accepted Submission(s): 439Problem Desc... 阅读全文
posted @ 2014-12-21 09:46 qscqesze 阅读(252) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular... 阅读全文
posted @ 2014-12-18 20:32 qscqesze 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖... 阅读全文
posted @ 2014-12-18 19:57 qscqesze 阅读(335) 评论(0) 推荐(0) 编辑
摘要: C. Removing Columnstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an n × m rectan... 阅读全文
posted @ 2014-12-18 17:34 qscqesze 阅读(393) 评论(0) 推荐(0) 编辑
摘要: B. Secret Combinationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou got a box with a combin... 阅读全文
posted @ 2014-12-18 17:18 qscqesze 阅读(336) 评论(0) 推荐(0) 编辑
摘要: A. Minimum Difficultytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike is trying rock climbin... 阅读全文
posted @ 2014-12-18 17:16 qscqesze 阅读(352) 评论(0) 推荐(0) 编辑
摘要: Dungeon Master Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescription You are trapped in a 3D dungeon and need to find the qu... 阅读全文
posted @ 2014-12-17 21:41 qscqesze 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 最速打法:1 - login, brucedayton 2 - login, allomoto 3 - login, m3g4pa55word 4 - unlock, 03/18/34 5 - ssh danielrich, half0099way 6 - ssh ccm_02, 00admin, ... 阅读全文
posted @ 2014-12-17 19:52 qscqesze 阅读(3066) 评论(5) 推荐(1) 编辑
摘要: A - 棋盘问题 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能... 阅读全文
posted @ 2014-12-17 00:19 qscqesze 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 时间限制:1000ms单点时限:1000ms内存限制:256MB描述fjxmlhx每天都在被沼跃鱼刷屏,因此他急切的找到了你希望你写一个程序屏蔽所有句子中的沼跃鱼(“marshtomp”,不区分大小写)。为了使句子不缺少成分,统一换成 “fjxmlhx” 。输入输入包括多行。每行是一个字符串,长度不... 阅读全文
posted @ 2014-12-15 00:46 qscqesze 阅读(587) 评论(0) 推荐(0) 编辑
摘要: #1081 : 最短路径·一时间限制:10000ms单点时限:1000ms内存限制:256MB描述万圣节的早上,小Hi和小Ho在经历了一个小时的争论后,终于决定了如何度过这样有意义的一天——他们决定去闯鬼屋!在鬼屋门口排上了若干小时的队伍之后,刚刚进入鬼屋的小Hi和小Ho都颇饥饿,于是他们决定利用进... 阅读全文
posted @ 2014-12-14 23:23 qscqesze 阅读(687) 评论(0) 推荐(0) 编辑
摘要: How Many Maos Does the Guanxi WorthTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 303Accepted S... 阅读全文
posted @ 2014-12-11 16:35 qscqesze 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 最短路Time Limit: 5000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 34172Accepted Submission(s): 14834Problem Descr... 阅读全文
posted @ 2014-12-10 22:58 qscqesze 阅读(242) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll;using namespace std;/... 阅读全文
posted @ 2014-12-10 22:04 qscqesze 阅读(224) 评论(0) 推荐(0) 编辑
摘要: /*1026 逃跑的拉尔夫 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题目描述 Description年轻的拉尔夫开玩笑地从一个小镇上偷走了一辆车,但他没想到的是那辆车属于警察局,并且车上装有用于发射车子移动路线的装置。那个装置太旧了,以至于只能发射关于... 阅读全文
posted @ 2014-12-09 21:43 qscqesze 阅读(485) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-12-07 21:50 qscqesze 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Chef and Apple TreesChef loves to prepare delicious dishes. This time, Chef has decided to prepare a special dish for you, and needs to gather several... 阅读全文
posted @ 2014-12-05 18:56 qscqesze 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Hamming DistanceTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 1569Accepted Submission(s): 616Pro... 阅读全文
posted @ 2014-12-05 18:26 qscqesze 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1080 线段树练习 时间限制: 1 s空间限制: 128000 KB题目等级 : 钻石 Diamond题目描述 Description一行N个方格,开始每个格子里都有一个整数。现在动态地提出一些问题和修改:提问的形式是求某一个特定的子区间[a,b]中所有元素的和;修改的规则是指定某一个格子x,加上... 阅读全文
posted @ 2014-12-05 01:09 qscqesze 阅读(278) 评论(0) 推荐(0) 编辑
摘要: MatrixTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 19174Accepted: 7207DescriptionGiven an N*N matrix A, whose elements are either 0 or 1. ... 阅读全文
posted @ 2014-12-05 00:43 qscqesze 阅读(247) 评论(0) 推荐(0) 编辑