![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
暴力
文章平均质量分 87
SPZn_up
这个作者很懒,什么都没留下…
展开
-
uva 140 Bandwidth (全排列+暴力枚举)
uva 140 Bandwidth Given a graph (V,E) where V is a set of nodes and E is a set of arcs in VxV, and anordering on the elements in V, then the bandwidth of a node v is defined as the maxim原创 2015-01-27 22:01:16 · 644 阅读 · 0 评论 -
uva 10245 The Closest Pair Problem (暴力+剪枝)
uva 10245 The Closest Pair Problem题目大意:给出n个点,求出距离最近的两点间的距离。若点与点间的距离都大于10000,输出INFINITY解题思路:这题的正统做法是分治,偷懒方法是暴力加剪枝。先按x坐标排序,然后fabs(p[i] - p[j]) > ans的点就可以直接跳过了。#include#include#include原创 2015-03-07 16:05:03 · 617 阅读 · 0 评论 -
uva 10603 Fill (BFS)
uva 10603 Fill There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The first and the second jug are initially empty, while the原创 2015-02-14 16:38:45 · 615 阅读 · 0 评论 -
uva 725 Division(暴力枚举)
uva 725 DivisionWrite a program that finds and displays all pairs of 5-digit numbers that between them use the digits0 through 9 once each, such that the first number divided by the second原创 2015-01-24 13:29:23 · 1243 阅读 · 0 评论 -
uva 131 The Psychic Poker Player(暴力枚举+德州扑克)
uva 131 The Psychic Poker PlayerIn 5-card draw poker, a player is dealt a hand of five cards (which may be looked at). The player may then discard between zero and five of his or her cards and原创 2015-01-23 23:15:24 · 1724 阅读 · 0 评论 -
uva 10167 Birthday Cake(暴力/枚举)
uva 10167 Birthday CakeBackgroundLucy and Lily are twins. Today is their birthday. Mother buys a birthday cake for them.Now we put the cake onto a Descartes coordinate. Its center is at (0原创 2015-01-23 15:07:23 · 622 阅读 · 0 评论 -
uva 11205 The broken pedometer (暴力)
uva 11205 The broken pedometer The ProblemA marathon runner uses a pedometer with which he is having problems. In the pedometer the symbols are represented by seven segments (or LEDs):Bu原创 2015-01-23 15:31:59 · 852 阅读 · 0 评论 -
POJ 1731 Orders(带重复字母的全排列 + 暴力)
POJ 1731 OrdersDescriptionThe stores manager has sorted all kinds of goods in an alphabetical order of their labels. All the kinds having labels starting with the same letter are stored原创 2015-01-23 15:16:16 · 1061 阅读 · 0 评论 -
uva 10012 How Big Is It?(枚举)
uva 10012 How Big Is It?Ian's going to California, and he has to pack his things, including his collection of circles. Given a set of circles, your program must find the smallest rectangular box原创 2015-02-03 17:16:55 · 543 阅读 · 0 评论 -
hdu 5386 Cover (暴力)
hdu 5386 CoverDescription You have an matrix.Every grid has a color.Now there are two types of operating: L x y: for(int i=1;i<=n;i++)color[i][x]=y; H x y:for(int i=1;i<=n;i++)color[x][i]=y; Now原创 2015-08-14 15:37:13 · 877 阅读 · 0 评论