
UVA
Usher_Ou
这个作者很懒,什么都没留下…
展开
-
uva679 Dropping Balls
A number ofKballs are dropped one by one from the root of a fully binary tree structure FBT. Eachtime the ball being dropped first visits a non-terminal node. It then keeps moving down, either follo原创 2017-02-23 15:48:28 · 301 阅读 · 0 评论 -
UVa-129-Krypton Factor
Problem问题You have been employed by the organisers of a Super Krypton Factor Contest in which contestants have very high mental and physical abilities. In one section of the contest the contestan原创 2017-02-26 17:54:04 · 341 阅读 · 0 评论 -
UVA - 524 Prime Ring Problem
DescriptionA ring is composed of n (even number) circles as shown in diagram. Put natural numbers into each circle separately, and the sum of numbers in two adjacent circles should be a prime.原创 2017-02-26 16:26:44 · 390 阅读 · 0 评论 -
[UVA11059]Maximum Product 暴力求解入门
[UVA11059]Maximum Product[暴力]题意:给出一个序列,问这个序列中最大连续累乘的子序列中,最大的值为多少,如果都为负数,则输出0.代码:#include #include #include using namespace std;const int maxn = 100;long long num[maxn];vectorv;bool cmp(lo原创 2017-02-26 10:27:56 · 354 阅读 · 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,原创 2017-02-26 09:22:14 · 384 阅读 · 0 评论 -
UVA 11572 Unique Snowflakes
题目大意:给n个数, n典型的滑动窗口问题#include #include #include #include #include using namespace std;const int maxn = 1000000 + 5;int n, g[maxn];map v;int main(){ int cas; cin>>cas;原创 2017-03-07 15:51:59 · 271 阅读 · 0 评论 -
UVa 1374 Power Calculus (快速幂计算)
题意:给出x和正整数n,问最少需要几次乘除法 可以得到n = x^m//打表法对1~1000的数打表#include #include using namespace std;const int ans[]={0,1,2,2,3,3,4,3,4,4,5,4,5,5,5,4,5,5,6,5,6,6,6,5,6,6,6,6,7,6,6,5,6,6,7,6,7,7,7,6,7,7原创 2017-03-09 17:31:00 · 501 阅读 · 0 评论 -
UVA 562 Dividing coins(01dp)
传送门 It’s commonly known that the Dutch have invented copper-wire. Two Dutch men were fighting over a nickel, which was made of copper. They were both so eager to get it and the fighting was so fierce原创 2017-03-27 16:04:12 · 388 阅读 · 0 评论