上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 49 下一页
摘要: 题目描述Q市发生了一起特大盗窃案。这起盗窃案是由多名盗窃犯联合实施的,你要做的就是尽可能多的抓捕盗窃犯。已知盗窃犯分布于 N N个地点,以及第 i i个地点初始有 ai ai名盗窃犯。特别的是,对于每一个地点 u u,都有一个固定的地点 v v--当前如果某个盗窃犯... 阅读全文
posted @ 2019-03-01 22:21 black_hole6 阅读(307) 评论(0) 推荐(0)
摘要: 小明最近在教邻居家的小朋友小学奥数,而最近正好讲述到了三阶幻方这个部分,三阶幻方指的是将1~9不重复的填入一个3*3的矩阵当中,使得每一行、每一列和每一条对角线的和都是相同的。 三阶幻方又被称作九宫格,在小学奥数里有一句非常有名的口诀:“二四为肩... 阅读全文
posted @ 2019-03-01 16:27 black_hole6 阅读(555) 评论(0) 推荐(0)
摘要: C - Arthur and Table Arthur has bought a beautiful big table into his new flat. When he came home, Arthur noticed that the new table i... 阅读全文
posted @ 2019-03-01 10:57 black_hole6 阅读(159) 评论(0) 推荐(0)
摘要: Arkady plays Gardenscapes a lot. Arkady wants to build two new fountains. There are n available fountains, for each fountain its beaut... 阅读全文
posted @ 2019-02-25 21:26 black_hole6 阅读(289) 评论(0) 推荐(0)
摘要: In the game of Sudoku, you are given a large 9 × 9 grid divided into smaller 3 × 3 subgrids. For example,. 2 7 3 8 . . 1... 阅读全文
posted @ 2019-02-20 02:42 black_hole6 阅读(538) 评论(0) 推荐(0)
摘要: FJ's N (1 ≤ N ≤ 10,000) cows conveniently indexed 1..N are standing in a line. Each cow has a positive integer height (which is a bit ... 阅读全文
posted @ 2019-02-20 01:07 black_hole6 阅读(301) 评论(0) 推荐(0)
摘要: 度熊面前有一个全是由1构成的字符串,被称为全1序列。你可以合并任意相邻的两个1,从而形成一个新的序列。对于给定的一个全1序列,请计算根据以上方法,可以构成多少种不同的序列。Input这里包括多组测试数据,每组测试数据包含一个正整数NN,代表全1序列的长度。 1≤N≤2... 阅读全文
posted @ 2019-02-17 21:38 black_hole6 阅读(113) 评论(0) 推荐(0)
摘要: A permutation p is an ordered group of numbers p1, p2, ..., pn, consisting of ndistinct positive integers, each is no more than ... 阅读全文
posted @ 2019-02-17 19:43 black_hole6 阅读(278) 评论(0) 推荐(0)
摘要: Sasha likes programming. Once, during a very long contest, Sasha decided that he was a bit tired and needed to relax. So he did. But s... 阅读全文
posted @ 2019-02-17 14:47 black_hole6 阅读(333) 评论(0) 推荐(0)
摘要: After the fourth season Sherlock and Moriary have realized the whole foolishness of the battle between them and decided to continue th... 阅读全文
posted @ 2019-02-15 18:22 black_hole6 阅读(273) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 49 下一页