摘要: Description Several currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and perf 阅读全文
posted @ 2017-05-19 19:30 Robin! 阅读(294) 评论(0) 推荐(0) 编辑
摘要: Description Vasya has an array a consisting of positive integer numbers. Vasya wants to divide this array into two non-empty consecutive parts (the pr 阅读全文
posted @ 2017-05-16 23:18 Robin! 阅读(593) 评论(0) 推荐(0) 编辑
摘要: Problem Description N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到气球b依次给每个气球涂一次颜色。但是N次以后lele已经忘记了第I个气球已经涂过几次颜色了,你能帮他算出每个气 阅读全文
posted @ 2017-05-16 20:03 Robin! 阅读(714) 评论(0) 推荐(0) 编辑
摘要: Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping 阅读全文
posted @ 2017-05-15 22:59 Robin! 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Description On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or ver 阅读全文
posted @ 2017-05-02 20:37 Robin! 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Description 有n种不同大小的数字,每种各个。判断是否可以从这些数字之中选出若干使它们的和恰好为K。 Input 首先是一个正整数T(1<=T<=100)接下来是T组数据每组数据第一行是一个正整数n(1<=n<=100),表示有n种不同大小的数字第二行是n个不同大小的正整数ai(1<=ai 阅读全文
posted @ 2017-05-02 13:41 Robin! 阅读(429) 评论(0) 推荐(0) 编辑
摘要: Description 营业额统计 Tiger最近被公司升任为营业部经理,他上任后接受公司交给的第一项任务便是统计并分析公司成立以来的营业情况。 Tiger拿出了公司的账本,账本上记录了公司成立以来每天的营业额。分析营业情况是一项相当复杂的工作。由于节假日,大减价或者是其他情况的时候,营业额会出现一 阅读全文
posted @ 2017-04-27 00:58 Robin! 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 对于splay核心是旋转和伸展,其他操作基本都是利用伸展的特性: 阅读全文
posted @ 2017-04-26 17:06 Robin! 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Kruskal 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define INF 0x3f3f3f3f 4 #define M(a, b) memset(a, b, sizeof(a)) 5 const int N = 1e3 + 10, 阅读全文
posted @ 2017-04-25 08:44 Robin! 阅读(677) 评论(0) 推荐(0) 编辑
摘要: Introduction You are the lead programmer for the Securitron 9042, the latest and greatest in home security software from Jellern Inc. (Motto: We secur 阅读全文
posted @ 2017-04-24 20:31 Robin! 阅读(214) 评论(0) 推荐(0) 编辑