![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
暴力
wb129945130
这个作者很懒,什么都没留下…
展开
-
Uva 11059 Maximum Product
Given a sequence of integers S = {S1, S2, … , Sn}, you should determine what is the value of the maximum positive product involving consecutive terms of S. If you cannot find a positive sequence, you原创 2015-07-28 10:32:24 · 271 阅读 · 0 评论 -
UVA 725 Division
Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such that the first number divided by the second is equal to an integer N, w原创 2015-07-28 16:13:11 · 408 阅读 · 0 评论 -
Uva524 Primer Ring Problem
DescriptionA ring is composed of n (even number) circles as shown in diagram. Put natural numbers $1, 2,……, into each circle separately, and the sum of numbers in two adjacent circles should be a prim原创 2015-07-29 16:09:29 · 333 阅读 · 0 评论 -
NOIP2008 火柴棒等式
【问题描述】给你n根火柴棒,你可以拼出多少个形如“A+B=C”的等式?等式中的A、B、C是用火柴棒拼出的整数(若该数非零,则最高位不能是0)。用火柴棒拼数字0–9的拼法如图所示: 注意加号与等号各自需要2根火柴棒 如果A≠B,则A+B=C与B+A=C视为不同的等式(A、B、C>=0) n根火柴棒必须全部用上 【输入】 ,有一个整数n(n<=24)。【输出】输出表示能拼成的不同等式的数目。【原创 2015-07-29 19:43:07 · 486 阅读 · 0 评论 -
hdu 2524矩形A + B
Description 给你一个高为n ,宽为m列的网格,计算出这个网格中有多少个矩形,下图为高为2,宽为4的网格. Input 第一行输入一个t, 表示有t组数据,然后每行输入n,m,分别表示网格的高和宽 ( n < 100 , m < 100). Output 每行输出网格中有多少个矩形.Sample Input 2 1 2 2 4 Sample Output 3 30 代码原创 2015-07-30 08:59:13 · 264 阅读 · 0 评论 -
hdu 3529 炸弹人
你还记得小霸王游戏机上的炸弹人吗?用放置炸弹的方法来消灭敌人。必须将画面上的敌人全部消灭。必须画面上的敌人全部消灭后,并找到隐藏的墙里面的暗门才能过关。 现在有一个特殊的关卡你只有一枚炸弹,但是这枚炸弹威力超强(杀伤距离超长,可以消灭杀伤范围内的所有敌人)。请问在哪里放置炸弹才可以消灭最多的敌人呢? 题解将图形化地图转化为字符型二维数组;##############GG.GGG#GGG原创 2015-07-29 09:45:36 · 772 阅读 · 2 评论 -
CodeForces 556A Case of the Zeros and Ones
Andrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.Once he thought about a string of length n consisting of zeroes and ones. C原创 2015-07-31 19:24:05 · 380 阅读 · 0 评论 -
UVALive 6661 Equal Sum Sets
Let us consider sets of positive integers less than or equal to n. Note that all elements of a set are different. Also note that the order of elements doesnt matter, that is, both {3, 5, 9} and {5, 9,原创 2015-07-31 20:56:20 · 397 阅读 · 0 评论 -
HDU 5224 Tom and paper
Problem DescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the minimum perimeter of this paper.InputIn the first原创 2015-07-31 19:15:23 · 321 阅读 · 0 评论