
QDU_AP协会17级ST1
xuanweiace
一个热爱算法竞赛的弱校ACMer路过。青大本,浙大硕,方向后端开发,菜鸡一枚,奋斗ing...
展开
-
**【POJ - 2389】 Bull Math (高精度乘法)
题干: Bulls are so much better at math than the cows. They can multiply huge integers together and get perfectly precise answers ... or so they say. Farmer John wonders if their answers are correct....原创 2018-07-16 23:44:57 · 273 阅读 · 0 评论 -
【HDU - 1856】 More is better(并查集)(还需要空间优化。。)
题干:Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. Of course there are certain requirements. Mr Wang selected a ro...原创 2018-07-15 23:39:20 · 231 阅读 · 0 评论 -
【HDU - 1241】Oil Deposits (连通块问题 属于求大海中的岛屿个数 类似问题)
题干: The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that di...原创 2018-07-15 20:14:36 · 493 阅读 · 0 评论 -
【HDU - 1873】 看病要排队(优先队列)
题干:看病要排队这个是地球人都知道的常识。 不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为10的优先权最高,级别为1的优先权最低。医生在看病时,则会在他的队伍里面选择一个优先权最高的人进行诊治。如果遇到两个优先权一样的病人的...原创 2018-07-15 23:38:57 · 280 阅读 · 0 评论 -
【HDU - 1326】Box of Bricks(模拟水题)
题干:Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall!'', he tells his older sister Alice. ``Nah, you...原创 2018-07-15 23:39:27 · 314 阅读 · 0 评论 -
【HDU - 1276】士兵队列训练问题 (报数问题 模拟)
题干:某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二报数、一至三报数直到剩下的人数不超过三人为止。 Input本题有多个测试数据组,第一行为组数N,接着为N行新兵人数,新兵人...原创 2018-07-15 23:40:20 · 879 阅读 · 0 评论 -
【HDU - 1870】愚人节的礼物(水题模拟 思想类似于栈?)
题干:四月一日快到了,Vayko想了个愚人的好办法——送礼物。嘿嘿,不要想的太好,这礼物可没那么简单,Vayko为了愚人,准备了一堆盒子,其中有一个盒子里面装了礼物。盒子里面可以再放零个或者多个盒子。假设放礼物的盒子里不再放其他盒子。 用()表示一个盒子,B表示礼物,Vayko想让你帮她算出愚人指数,即最少需要拆多少个盒子才能拿到礼物。 Input本题目包含多组测试,请处理到文件结束。 每组测试包...原创 2018-07-15 23:40:48 · 339 阅读 · 0 评论 -
【CF#459 A 】Pashmak and Garden (水题)
题干:Pashmak has fallen in love with an attractive girl called Parmida since one year ago...Today, Pashmak set up a meeting with his partner in a romantic garden. Unfortunately, Pashmak has forgotten wh...原创 2018-07-15 23:41:18 · 254 阅读 · 0 评论