
UVA
鸩羽小夜
我是小垃圾,垃圾中的战斗圾
展开
-
UVA294Divisors(素数筛,约数数目公式)
题目链接https://vjudge.net/problem/UVA-294题目大意,求一个区间内哪个数的约数最多,输出该数和其约数的数目例如 3-10 6的约数最多有4个(1 2 3 6)求取约数个数公式m=(p1)^(x1)*(p2)^(x2)*(p3)^(x3)*……其中p1,p2,p3...是质数(素数),x1,x2,x3...是它们的指数则m的约数的个数是(x...原创 2019-10-23 14:08:17 · 233 阅读 · 0 评论 -
UVA1585
There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problem and an ‘X’ means a wrong answer. The score of each problem of this test is calculated by itself and i...原创 2019-09-05 22:02:03 · 426 阅读 · 0 评论 -
UVA1121Subsequence(二分+边界处理+尺取法)
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length o...原创 2019-10-06 14:25:26 · 204 阅读 · 0 评论