随笔分类 -  0J---Poj

摘要:题目链接:http://poj.org/problem?id=3624 Description Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill 阅读全文
posted @ 2019-03-22 14:38 wydxry 阅读(296) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://poj.org/problem?id=1258 Description Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet con 阅读全文
posted @ 2019-03-21 22:03 wydxry 阅读(517) 评论(0) 推荐(0) 编辑
摘要:Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走 阅读全文
posted @ 2019-03-21 15:45 wydxry 阅读(306) 评论(0) 推荐(0) 编辑
摘要:Description The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a stand 阅读全文
posted @ 2019-03-21 11:29 wydxry 阅读(196) 评论(0) 推荐(0) 编辑
摘要:Red and Black Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 47466 Accepted: 25523 Description There is a rectangular room, covered with s 阅读全文
posted @ 2019-03-19 20:08 wydxry 阅读(315) 评论(0) 推荐(0) 编辑
摘要:Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 49414 Accepted: 24273 Description Due to recent rains, water has pooled in va 阅读全文
posted @ 2019-03-19 19:39 wydxry 阅读(259) 评论(0) 推荐(0) 编辑
摘要:Fence Repair Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 67319 Accepted: 22142 Description Farmer John wants to repair a small length o 阅读全文
posted @ 2019-03-19 10:34 wydxry 阅读(208) 评论(0) 推荐(0) 编辑
摘要:HDU 2012 素数判定 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2012 对于表达式n^2+n+41,当n在(x,y)范围内取整数值时(包括x,y)(-39<=x<y<=50),判定该表达式的值是否都为素数。 Input输入数据有多组,每组占 阅读全文
posted @ 2017-08-07 16:54 wydxry 阅读(358) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://poj.org/problem?id=3624 Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the 阅读全文
posted @ 2017-08-07 16:24 wydxry 阅读(232) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://poj.org/problem?id=1789 Advanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable delivery, other f 阅读全文
posted @ 2017-08-07 15:10 wydxry 阅读(209) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://poj.org/problem?id=1330 题意:给定一个n个节点的有根树,以及树中的两个节点u,v,求u,v的最近公共祖先。 数据范围:n [2, 10000] 思路:从树根出发进行后序深度优先遍历,设置vis数组实时记录是否已被访问。 每遍历完一棵子树r,把它并入以r 阅读全文
posted @ 2017-08-04 18:23 wydxry 阅读(239) 评论(0) 推荐(0) 编辑
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 #include 15 #include 16... 阅读全文
posted @ 2017-08-04 18:08 wydxry 阅读(342) 评论(0) 推荐(0) 编辑
摘要:The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-born babies 阅读全文
posted @ 2017-08-04 11:02 wydxry 阅读(279) 评论(0) 推荐(0) 编辑
摘要:动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"1 X Y",表示X和Y是同类。 第二种说 阅读全文
posted @ 2017-08-03 10:30 wydxry 阅读(609) 评论(0) 推荐(0) 编辑
摘要:Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize 阅读全文
posted @ 2017-08-03 00:16 wydxry 阅读(203) 评论(0) 推荐(0) 编辑
摘要:Farmer John wants to set up a telephone line at his farm. Unfortunately, the phone company is uncooperative, so he needs to pay for some of the cables 阅读全文
posted @ 2017-08-02 16:52 wydxry 阅读(251) 评论(0) 推荐(0) 编辑
摘要:We have received an order from Pizoor Communications Inc. for a special communication system. The system consists of several devices. For each device, 阅读全文
posted @ 2017-08-02 16:12 wydxry 阅读(446) 评论(0) 推荐(0) 编辑
摘要:Jessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on it. If she 阅读全文
posted @ 2017-08-02 11:18 wydxry 阅读(219) 评论(0) 推荐(0) 编辑
摘要:Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that 阅读全文
posted @ 2017-08-02 10:49 wydxry 阅读(288) 评论(0) 推荐(0) 编辑
摘要:Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of 阅读全文
posted @ 2017-08-02 10:31 wydxry 阅读(244) 评论(0) 推荐(0) 编辑

Live2D