
UVa
文章平均质量分 78
szhouan
这个作者很懒,什么都没留下…
展开
-
UVa 10392 Factoring Large Numbers(分解因数)
One of the central ideas behind much cryptography is that factoring large numbers is computationallyintensive. In this context one might use a 100 digit number that was a product of two 50 digit prime原创 2016-11-22 00:15:12 · 319 阅读 · 0 评论 -
UVa 10061 How many zero's and how many digits
Given a decimal integer number you will have to find out how many trailing zeros will be there in itsfactorial in a given number system and also you will have to find how many digits will its factoria原创 2016-11-21 23:31:49 · 268 阅读 · 0 评论 -
UVa 11340 Newspaper
News agency pays money for articles according to some rules. Each character has its own value (somecharacters may have value equals to zero). Author gets his payment as a sum of all character’s values原创 2016-11-22 14:09:07 · 259 阅读 · 0 评论 -
UVa 146 ID Codes (next_permutation函数)
It is 2084 and the year of Big Brother has finally arrived, albeit a century late. In order to exercise greater control over its citizens and thereby to counter a chronic breakdown in law and order, t原创 2016-11-22 14:27:06 · 231 阅读 · 0 评论 -
UVa 10810 Ultra-QuickSort(逆序对)
题目描述:给出n个整数,求其逆序对个数。数据范围:n分析:使用归并排序求逆序对/* PROG: UVa10810*/#include #include #include using namespace std;#define MAXN 500010int a[MAXN], b[MAXN], c[MAXN];#define DEBUG 1#define LOG(原创 2016-11-23 14:32:47 · 306 阅读 · 0 评论 -
UVa 908 Re-connecting Computer Sites
Consider the problem of selecting a setT of high-speed lines for connectingN computer sites, from auniverse ofM high-speed lines each connecting a pair of computer sites. Each high-speed line ha原创 2016-11-24 22:25:42 · 442 阅读 · 0 评论