暴力
veget_chicken
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Chess
链接:http://codeforces.com/problemset/problem/38/B题目:Two chess pieces, a rook and a knight, stand on a standard chessboard 8 × 8 in size. The positions in which they are situated are known. It i原创 2016-08-28 15:20:48 · 477 阅读 · 0 评论 -
One Bomb
链接:题目:You are given a description of a depot. It is a rectangular checkered field ofn × m size. Each cell in a field can be empty (".") or it can be occupied by a wall ("*").You have o原创 2016-08-28 17:58:48 · 378 阅读 · 0 评论 -
Stars
链接:http://poj.org/problem?id=2352题目:Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amou原创 2016-08-30 13:43:26 · 304 阅读 · 0 评论 -
Nearest Common Ancestors
链接:http://poj.org/problem?id=1330题目:A rooted tree is a well-known data structure in computer science and engineering. An example is shown below:In the figure, each node is labeled with a原创 2016-08-30 21:34:42 · 430 阅读 · 0 评论 -
七夕节
链接:http://acm.hust.edu.cn/vjudge/problem/22310/origin题目:七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!" 人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下: 数字N的因子就是所有比N小又能被N整除的所有正整数原创 2016-08-31 20:05:19 · 231 阅读 · 0 评论 -
整除的尾数
链接:http://acm.hust.edu.cn/vjudge/problem/23629/origin题目:一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢?题意:。。分析:数论里面简单的水题一般就是暴力了。这道题主要坑在了有只有个位的情况,需要变成两位输出。题解:#include #include #include #原创 2016-08-31 20:11:54 · 334 阅读 · 0 评论 -
Connecting Universities
链接:http://acm.hust.edu.cn/vjudge/problem/427647/origin题目:Treeland is a country in which there are n towns connected byn - 1 two-way road such that it's possible to get from any town to any原创 2016-09-03 21:45:56 · 350 阅读 · 0 评论 -
Jam's balance
链接:题目:Jim has a balance and N weights. $(1 \leq N \leq 20)$ The balance can only tell whether things on different side are the same weight. Weights can be put on left side or right side arbitr原创 2016-09-04 16:25:45 · 468 阅读 · 0 评论
分享