Fork me on GitHub

随笔分类 -  HDU - OJ

http://acm.hdu.edu.cn/
摘要:又重头开始刷kuangbin,有些题用了和以前不一样的思路解决。全部题解如下 点击每道题的标题即可跳转至VJ题目页面。 A-棋盘问题 棋子不能摆在相同行和相同列,所以我们可以依此枚举每一行,然后标记每一列是否走过,在此基础上进行DFS即可。 代码如下: B-Dungeon Master 题意就是给你 阅读全文
posted @ 2018-12-23 00:05 Xenny 阅读(1657) 评论(1) 推荐(1) 编辑
摘要:Problem Description The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 1 阅读全文
posted @ 2018-08-01 23:31 Xenny 阅读(489) 评论(0) 推荐(0) 编辑
摘要:Problem Description Suppose that you are an admiral of a famous naval troop. Our naval forces have got 21 battleships. There are 6 types of battleship 阅读全文
posted @ 2018-08-01 12:14 Xenny 阅读(411) 评论(0) 推荐(0) 编辑
摘要:Problem Description The students of the HEU are maneuvering for their military training. The red army and the blue army are at war today. The blue arm 阅读全文
posted @ 2018-07-31 20:29 Xenny 阅读(381) 评论(0) 推荐(0) 编辑
摘要:Problem Description Last night, little erriyue had a horrible nightmare. He dreamed that he and his girl friend were trapped in a big maze separately. 阅读全文
posted @ 2018-07-30 00:07 Xenny 阅读(908) 评论(0) 推荐(0) 编辑
摘要:Problem Description Ignatius花了一个星期的时间终于找到了传说中的宝藏,宝藏被放在一个房间里,房间的门用密码锁起来了,在门旁边的墙上有一些关于密码的提示信息: 密码是一个C进制的数,并且只能由给定的M个数字构成,同时密码是一个给定十进制整数N(0<=N<=5000)的正整数 阅读全文
posted @ 2018-07-29 12:11 Xenny 阅读(833) 评论(0) 推荐(0) 编辑
摘要:题目连接:http://120.78.128.11/Contest.jsp?cid=221#H 题目都比较难,每道题都很经典,我也做的很慢,这篇博文算是个收录。具体题目题解点击下面超链接吧。 一、Bridged Marble Rings 二、转换地图 三、超级密码 四、Fliptile 五、Gap 阅读全文
posted @ 2018-07-29 09:01 Xenny 阅读(392) 评论(0) 推荐(0) 编辑
摘要:Problem Description Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity f 阅读全文
posted @ 2018-07-29 08:50 Xenny 阅读(836) 评论(0) 推荐(1) 编辑
摘要:这个OJ一直在做,一些专题题目都很好,从易至难,阶梯上升,很适合像我这样的蒟蒻 =7= 这篇是关于其中一个专题训练的题解思路及代码 http://120.78.128.11/Contest.jsp?cid=486 所有题面我就不贴了,各位自行去看,链接在上一行 =7= 一、求众数(Map标记+Set 阅读全文
posted @ 2018-07-26 10:24 Xenny 阅读(1238) 评论(0) 推荐(1) 编辑
摘要:Problem Description There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical st 阅读全文
posted @ 2018-07-24 19:44 Xenny 阅读(382) 评论(0) 推荐(0) 编辑
摘要:Problem Description Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to 阅读全文
posted @ 2018-07-24 18:28 Xenny 阅读(494) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示