哈希
文章平均质量分 85
UMR小豪
这个作者很懒,什么都没留下…
展开
-
HDU1496 Equations
EquationsTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7881 Accepted Submission(s): 3224Problem DescriptionConsider equatio原创 2016-08-08 19:01:05 · 257 阅读 · 0 评论 -
打印学生选课清单
假设全校有最多40000名学生和最多2500门课程。现给出每门课的选课学生名单,要求输出每个前来查询的学生的选课清单。输入格式:输入的第一行是两个正整数:N(\le≤40000),为前来查询课表的学生总数;K(\le≤2500),为总课程数。此后顺序给出课程1到K的选课学生名单。格式为:对每一门课,首先在一行中输出课程编号(简单起见,课程从1到K编号)和选课学生总数(之间用空格分隔原创 2017-03-05 17:52:36 · 1352 阅读 · 0 评论 -
航空公司VIP客户查询
5-12 航空公司VIP客户查询 (25分)不少航空公司都会提供优惠的会员服务,当某顾客飞行里程累积达到一定数量后,可以使用里程积分直接兑换奖励机票或奖励升舱等服务。现给定某航空公司全体会员的飞行记录,要求实现根据身份证号码快速查询会员里程积分的功能。输入格式:输入首先给出两个正整数NN(\le 10^5≤105)和KK(\le 500≤500)。其中原创 2017-03-05 17:55:40 · 2866 阅读 · 0 评论 -
HackerRank - number-game-on-a-tree
Andy and Lily love playing games with numbers and trees. Today they have a treeconsisting of nodes and edges. Each edge has an integer weight, .Before the game starts, Andy chooses an unord原创 2017-02-10 09:13:18 · 592 阅读 · 0 评论 -
Hardwood Species
C - Hardwood SpeciesTime Limit:10000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 2418DescriptionHardwoods are the botanical group of原创 2016-07-21 19:02:05 · 369 阅读 · 0 评论 -
poj2513 Colored Sticks
Colored SticksTime Limit: 5000MS Memory Limit: 128000KTotal Submissions: 35039 Accepted: 9155DescriptionYou are given a bunch(群) of wooden sticks. Each endpoint原创 2016-08-09 19:41:48 · 297 阅读 · 0 评论 -
poj 3007Organize Your Train part II
Organize Your Train part IITime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8089 Accepted: 2342DescriptionRJ Freight, a Japanese railroad company for f原创 2016-09-19 20:32:03 · 835 阅读 · 0 评论 -
QQ帐户的申请与登陆
实现QQ新帐户申请和老帐户登陆的简化版功能。最大挑战是:据说现在的QQ号码已经有10位数了。输入格式:输入首先给出一个正整数NNN(≤105\le 10^5≤105),随后给出NNN行指令。每行指令的格式为:“命令符(空格)QQ号码(空格)密码”。其中命令符为“N”(代表New)时表示要新申请一个QQ号,后面是新帐户的号码和密码;命令符为“L”(代表Login)时表示是老帐户登陆原创 2016-07-13 20:46:19 · 2077 阅读 · 0 评论 -
Teacher Bo
Teacher BoTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1532 Accepted Submission(s): 593Problem DescriptionTeacher BoBo i原创 2016-07-27 09:22:06 · 667 阅读 · 0 评论 -
poj3349 Snowflake Snow Snowflakes
Snowflake Snow SnowflakesTime Limit: 4000MS Memory Limit: 65536KTotal Submissions: 38288 Accepted: 10031DescriptionYou may have heard that no two snowflakes are原创 2016-08-04 17:58:03 · 298 阅读 · 0 评论 -
poj3274 Gold Balanced Lineup
这个题的意思就是比我自己说要明白多了呢,我表示读英语的时候完全没有读出这个意思啊喂!(╯‵□′)╯︵┻━┻。这个题的意思就是如果把每头牛转化成2进制的数,那么要求的应该是 一个最大区间,这个区间满足 (2进制)1-K上的每一位出现的1的次数和相同。我们可以借助前缀和数组,先把牛们都转化成2进制,然后做一个累加和,像这样:数字 特征值 第几头牛原创 2016-08-04 21:42:58 · 417 阅读 · 0 评论 -
poj1840 Eqs
EqsTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 15337 Accepted: 7529DescriptionConsider equations having the following form: a1x13+ a2x23+ a3x33+原创 2016-08-05 21:26:07 · 313 阅读 · 0 评论 -
poj2002 Squares
SquaresTime Limit: 3500MS Memory Limit: 65536KTotal Submissions: 18718 Accepted: 7209DescriptionA square is a 4-sided polygon(多边形) whose sides have equal length原创 2016-08-06 16:45:12 · 253 阅读 · 0 评论 -
poj2442 Sequence
SequenceTime Limit: 6000MS Memory Limit: 65536KTotal Submissions: 8887 Accepted: 2953DescriptionGiven m sequences, each contains n non-negative integer. Now we原创 2016-08-08 11:37:42 · 1861 阅读 · 1 评论 -
poj2549 Sumsets
SumsetsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 10533 Accepted: 2863DescriptionGiven S, a set of integers, find the largest d such that a + b +原创 2016-08-08 18:10:35 · 445 阅读 · 0 评论 -
CF422 div2 C. Hacker, pack your bags!
C. Hacker, pack your bags!time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt's well known that the best wa原创 2017-07-03 13:37:03 · 514 阅读 · 0 评论