上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 34 下一页
摘要: 题目:输入n 然后输入n个整数,用分治法求这n个数中的最大元; 思路:把这列数分成两半,递归下去,到只剩一个数时停止,返回这个数,如果不是一个数则返回分成的两段数最大值的较大者; 实验提示:在规模为n的数据元素集合中找出最大元。当n=2时,一次比较就可以找出两个数据元素的最大元和最小元。当n>2时, 阅读全文
posted @ 2016-09-22 15:50 茶飘香~ 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 题目:一只袋鼠要从河这边跳到河对岸,河很宽,但是河中间打了很多桩子,每隔一米就有一个,每个桩子上都有一个弹簧,袋鼠跳到弹簧上就可以跳的更远,每个弹簧力量不同,用一个数字代表它的力量,如果弹簧力量为5,就代表袋鼠下一跳最多能够跳5米,如果为0,就会陷进去无法继续跳跃,河流一共N米宽,袋鼠初始位置就在第 阅读全文
posted @ 2016-09-21 19:23 茶飘香~ 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: 参赛感想 这是第一次参加暑假多校训练,应该也会是人生中最后一次,我真的很庆幸能参加这个训练,和全国几乎所有高校的ACMer一起在一个平台上做题!昨天为止多校已经完全结束,今天看到叉姐的训练感想(叉姐的感想链接),我觉得我也有必要写下自己的训练感想。 人的眼界总是狭窄的,当在自己的学校站在前几名的时候 阅读全文
posted @ 2016-09-21 15:33 茶飘香~ 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=4803 Problem Description Jenny is a warehouse keeper. He writes down the entry records everyday. The re 阅读全文
posted @ 2016-09-20 21:25 茶飘香~ 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5880 Problem Description Steam is a digital distribution platform developed by Valve Corporation offeri 阅读全文
posted @ 2016-09-20 16:16 茶飘香~ 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5900 Problem Description Every school has some legends, Northeastern University is the same.Enter from 阅读全文
posted @ 2016-09-18 20:30 茶飘香~ 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5881 Problem Description Tea is good.Tea is life.Tea is everything.The balance of tea is a journey of p 阅读全文
posted @ 2016-09-17 21:17 茶飘香~ 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5884 Problem Description Recently, Bob has just learnt a naive sorting algorithm: merge sort. Now, Bob 阅读全文
posted @ 2016-09-17 20:42 茶飘香~ 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://vjudge.net/contest/132391#problem/G Description standard input/outputStatements — It' s a good game, — Princess said pensively. It was cle 阅读全文
posted @ 2016-09-16 21:09 茶飘香~ 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 题目: 在一个2^k x 2^k 个方格组成的棋盘中,若恰有一个方格与其他方格不同,则称该方格为一特殊方格,且称该棋盘为一特殊棋盘。现在要用4种不同形态的L型骨牌覆盖一个给定的特殊棋盘上除特殊方格以外的所有方格,且任意2个L型骨牌不得重叠覆盖。 解释一下什么是L型骨牌:就是由三个方格组成的一个角,可 阅读全文
posted @ 2016-09-16 15:47 茶飘香~ 阅读(810) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 34 下一页