
模拟
文章平均质量分 76
J_Sure
唯苦修深思方能顿悟
展开
-
Codeforces-287a C IQ Test
A. IQ Testtime limit per test2 secondsmemory limit per test256 megabytesIn the city of Ultima Thule job applicants are often offered an IQ test. The test is as follows: the perso原创 2014-03-17 11:15:06 · 2023 阅读 · 0 评论 -
AOJ-AHU-OJ-675 定位赛
定位赛Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescriptionLOLS4.1赛季正式开始,排位分又重置了,上赛季是最强王者的DoubleLee,JCBOSS迫不及待地打开LOL纳尼?!!定位赛换成ACM题了?!定位赛题目如下:给你n个整数(依次编原创 2014-03-28 21:04:29 · 1427 阅读 · 0 评论 -
AOJ-AHU-OJ-489 夺宝奇兵
夺宝奇兵Time Limit: 8000 ms Case Time Limit: 8000 ms Memory Limit: 64 MBDescriptionHF市地下有一份宝藏,数不清的黄金、钻石……。令人遗憾的是,千年来未曾有人得到过这份宝藏。其中一个主要原因就是,要得到这份宝藏之前,首先需要通过一个迷宫。这个迷宫的结构非常复杂,一共有N个秘密房间。广为流传的一种说原创 2014-03-19 13:26:30 · 2130 阅读 · 0 评论 -
HDU-OJ-1175 连连看
连连看Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description“连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过原创 2014-03-11 19:53:03 · 1115 阅读 · 0 评论 -
AOJ-AHU-OJ-11 Rails
RailsTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MB DescriptionThere is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built原创 2014-03-01 10:11:56 · 1283 阅读 · 0 评论 -
AOJ-AHU-OJ-595 撒哈拉大冒险(栈)
撒哈拉大冒险Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBTotal Submission: 193 Submission Accepted: 14Description在撒哈拉大沙漠中,有一个神奇的迷宫,那是所有冒险,探索者都想要破解的圣地。迷宫是由多块相同的子迷原创 2014-03-22 13:43:17 · 1490 阅读 · 0 评论 -
Round #6 C.Alice, Bob and Chocolate
题目链接:Codeforce原创 2014-04-19 18:28:40 · 1460 阅读 · 0 评论 -
AOJ-AHU-OJ-585 公路地图
公路地图Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescriptionlong long ago,cxlove是某国国王,掌控着n个城市,而且为了交通便捷,在城市与城市之间建立了公路,并且保证任意两个城市之间有且仅有一条路。简而言之,整个交通网是一个树型结构(PS:c原创 2014-04-05 11:00:14 · 1220 阅读 · 0 评论 -
USACO-cha1-sec1.1 Greedy Gift Givers
Greedy Gift GiversA group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to any or all of the other fri原创 2014-04-06 00:21:25 · 1105 阅读 · 0 评论 -
POJ-3232 Accelerator
AcceleratorTime Limit: 4000MS Memory Limit: 65536K DescriptionShiming (alpc02) is a boy likes to play PopKart very much. He is a good rider in this game. And on原创 2014-03-26 20:37:01 · 1408 阅读 · 1 评论 -
POJ-2828 Buy Tickets
Buy TicketsTime Limit: 4000MS Memory Limit: 65536K DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early原创 2014-04-11 22:07:18 · 1165 阅读 · 0 评论 -
USACO-cha1-sec1.3(AOJ-133) Calf Flac
Calf FlacTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBJudge By CaseDescriptionIt is said that if you give an infinite number of cows an infinite number ofheavy-dut原创 2014-03-19 16:55:39 · 1086 阅读 · 0 评论 -
AOJ-AHU-OJ-298 Rings of square grid
Rings of square gridTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescriptionAny square grid can be viewed as one or more rings, one inside the other. For examp原创 2014-04-28 21:45:26 · 950 阅读 · 0 评论 -
ZOJ-1025(POJ-1065、HDU-1051) Wooden Sticks
Wooden SticksTime Limit: 2 Seconds Memory Limit: 65536 KBThere is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a原创 2014-06-03 21:32:56 · 1298 阅读 · 0 评论 -
USACO-cha1-sec1.4 Packing Rectangles
Packing RectanglesIOI 95 The six basic layouts of four rectanglesFour rectangles are given. Find the smallest enclosing (new) rectangle into which these four may be fitted without overlapping.原创 2014-07-03 14:06:04 · 1236 阅读 · 0 评论 -
AOJ-AHU-OJ-517 序列(贪心)
序列Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBJudge By CaseDescription有一个整数序列,它的每个数各不相同,我们不知道它的长度是多少(即整数个数),但我们知道在某些区间中至少有多少个整数,用区间(Li,Ri,Ci)来描述,表示这个整数序列中至少有C原创 2014-06-03 12:18:02 · 1016 阅读 · 0 评论 -
USACO-cha1-sec1.1 Friday the Thirteenth
Friday the ThirteenthIs Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answer this question, wr原创 2014-04-06 16:06:14 · 1003 阅读 · 0 评论 -
Codeforces-298b H Sail
B. Sailtime limit per test1 secondmemory limit per test256 megabytesThe polar bears are going fishing. They plan to sail from (sx, sy) to(ex, ey). However, the boat can only sail原创 2014-03-18 14:11:40 · 2722 阅读 · 0 评论 -
Codeforces-298a G Snow Footprints
A. Snow Footprintstime limit per test1 secondmemory limit per test256 megabytesThere is a straight snowy road, divided into n blocks. The blocks are numbered from 1 ton from left t原创 2014-03-18 13:51:53 · 1602 阅读 · 0 评论 -
HDU-OJ-2019 K 数列有序!
数列有序!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description有n(n Input输入数据包含多个测试实例,每组数据由两行组成,第一行是n和m,第二行是已经有序的n个数的数列。n和m同时为0标示输入数据的结束原创 2014-03-18 14:51:11 · 1362 阅读 · 0 评论 -
AOJ-AHU-OJ-466 Monthly Expense
Monthly ExpenseTime Limit: 2000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBJudge By CaseDescriptionFarmer John is an astounding accounting wizard and has realized he might run out of原创 2014-03-18 19:44:30 · 1235 阅读 · 0 评论 -
AOJ-AHU-OJ-357 YH Triangle
YH TriangleTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescription输出一个杨辉三角,以n为第一个数字,共有m行。n=3 m=4时: 3 3 3 3 6 33 9 9 3Input0当n,m=0时结束输入。Output原创 2014-03-15 22:13:33 · 1071 阅读 · 0 评论 -
AOJ-AHU-OJ-10 目标柏林
目标柏林Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescription1945年初,苏军和英美联军已从东西两面攻入德国国境。 4月初,在苏军和英美联军的夹击下,德军只能龟缩在以柏林为中心的德国东部的狭长地带,成了瓮中之鳖。 但希特勒困兽犹斗,一方面发出摧毁一切设施,实行“焦土原创 2014-03-14 15:28:35 · 2401 阅读 · 1 评论 -
AOJ-AHU-OJ-153 Redraiment的走法
Redraiment的走法Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescriptionRedraiment是个聪明人,总是以奇怪的思考方法思考问题,但不知道为什么,他的解答总是最最巧妙,我们隆重地称他为诡异人!有一天Jesse不经意中发现,诡异人的走路方法很特别,于是特别关原创 2014-03-15 22:05:28 · 1466 阅读 · 0 评论 -
AOJ-AHU-OJ-191 删除数字
删除数字Time Limit: 2000 ms Case Time Limit: 2000 ms Memory Limit: 64 MBTotal Submission: 675 Submission Accepted: 117Description对给定的N位高精度正整数,去掉其中的k个数字后,使剩下的数字构成的整数最大。Input输入第1行为一个整数原创 2014-03-15 22:02:04 · 1241 阅读 · 0 评论 -
AOJ-AHU-OJ-664 彩灯高高挂
彩灯高高挂Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescriptionBran收到了好友的一个礼物——彩灯。彩灯是一个n×n×n的正方体,由n×n×n个小正方体组成,每个小正方体都是一个小彩灯。我们用坐标(x,y,z)(0≤x,y,z<n)来表示各个小彩灯,那么有彩原创 2014-03-28 16:51:02 · 1328 阅读 · 0 评论 -
HDU-OJ-2089 A 不要62
A - 不要62Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSource : HDU 2089Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有原创 2014-03-09 10:23:05 · 1223 阅读 · 0 评论 -
AOJ-AHU-OJ-9 University
UniversityTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MB Description在大学里,很多单词都是一词多义,偶尔在文章里还要用引申义。这困扰Redraiment很长的时间。他开始搜集那些单词的所有意义。他发现了一些规律,例如“a”能用“e”来代替, “c”能用“f”来代替……现在原创 2014-03-01 10:11:50 · 1842 阅读 · 0 评论 -
AOJ-AHU-OJ-443 寄存器数据转换
寄存器数据转换Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescription假设你工作在一个32位的机器上,你需要将某一个外设寄存器的第X位设置成0(最低位为第0位,最高位为第31位),将第Y位开始的连续三位设置成110(从高位到低位的顺序),而其他位保持不变。对给定的寄存器值R,及原创 2014-03-18 17:37:37 · 1107 阅读 · 0 评论 -
AOJ-AHU-OJ-670 Tyrion的矩阵
Tyrion的矩阵Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescriptionCersei有一个整数序列A = {A1, A2,..., An}, 0Jamie有一个整数序列B = {B1, B2,..., Bm}, 0Tyrion根据Ceise提供的序列A原创 2014-03-28 20:25:11 · 1163 阅读 · 0 评论 -
AOJ-AHU-OJ-579 期末考试之考试传纸条
期末考试之考试传纸条Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 32 MBDescription平时不努力,考试得着急呐。传说中的BT监考老师竟然搬来了信号屏蔽工具,手机不管用啦有木有。不过这难不到大家,cxlove见证了同学们使用传统的作弊方式----传纸条,纸条得从A同学传到B同学处,在一个N原创 2014-03-10 11:11:21 · 1095 阅读 · 0 评论 -
AOJ-AHU-OJ-145 流水线作业调度问题
流水线作业调度问题Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescriptionN个作业{1,2,………,n}要在由两台机器M1和M2组成的流水线上完成加工。每个作业加工的顺序都是先在M1上加工,然后在M2上加工。M1和M2加工作业i所需的时间分别为ai和bi,1≤i≤n。流水作原创 2014-03-04 14:56:53 · 2581 阅读 · 0 评论 -
AOJ-AHU-OJ-6 Hero in maze(拓展)
上次在Hero in maze中我把从白书上学到的BFS分享了一下。但是白书上的《走迷宫》其实是输出走出迷宫路径的。如果想要更好地学习BFS。请看如何打印出拯救公主的路径。代码如下:#include #include int q[900], la_dir[30][30], dir[900];//数组q[max*max]作为队列,保存当前位置 ,la_dir数组用于保存最后一次移动的方向原创 2014-03-02 21:14:00 · 1645 阅读 · 0 评论 -
Codeforces-279a F Point on Spiral
A. Point on Spiraltime limit per test2 secondsmemory limit per test256 megabytesValera the horse lives on a plane. The Cartesian coordinate system is defined on this plane. Also an i原创 2014-03-18 13:33:58 · 1589 阅读 · 0 评论 -
AOJ-AHU-OJ-668 the Kth number
the Kth numberTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescription定义序列N1 = {1, 2, 3, 4, 5, ..., 1000}(区间[1, 1000]内的所有整数);从N1中每隔1个数删除1个数进而得到N2 = {1, 3, 5,原创 2014-03-28 17:31:10 · 1347 阅读 · 0 评论 -
AOJ-AHU-OJ-5 渊子赛马
渊子赛马Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MB Description赛马是一古老的游戏,早在公元前四世纪的中国,处在诸侯割据的状态,历史上称为“战国时期”。在魏国作官的孙膑,因为受到同僚庞涓的迫害,被齐国使臣救出后,到达齐国国都。 赛马是当时最受齐国贵族欢迎的娱乐项目。上至国王,下到原创 2014-03-01 10:11:41 · 2143 阅读 · 0 评论