![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数论
文章平均质量分 90
SPZn_up
这个作者很懒,什么都没留下…
展开
-
uva 575 Skew Binary(数论)
uva 575 Skew BinaryWhen a number is expressed in decimal, the k-th digit represents a multiple of 10k. (Digits are numbered from right to left, where the least significant digit is number 0.)原创 2015-01-26 17:24:00 · 565 阅读 · 0 评论 -
uva 350 Pseudo-Random Numbers
uva 350 Pseudo-Random Numbers题目大意:给出z、l、m、i,根据公式l = (z * l + i ) % m,问l形成的循环有多少数。解题思路:只要注意形成的循环第一个元素不一定是原先的l,没什么难度,但是因为格式WA了两次 orz。 再一次证明了格式的重要性。#include#includeint main(){ int cnt2原创 2014-12-23 16:49:06 · 639 阅读 · 0 评论 -
uva 10392 Factoring Large Numbers
uva 10392 Factoring Large Numbers题目大意:将一个数分解成最小的因子。解题思路:想不到什么好办法 , 就用最笨的办法 , 然后过了 , 不要学我.#include#includeint main() { long long N; while (scanf("%lld", &N) != EOF, N > 0) { lon原创 2014-12-23 18:21:07 · 420 阅读 · 0 评论 -
uva 10061 How many zero's and how many digits ?(在不同进制下分解因子)
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 its factorial in a given number system and also原创 2014-12-28 19:31:33 · 539 阅读 · 0 评论 -
uva 10110 Light, more light (数论)
uva 10110 Light, more light The ProblemThere is man named "mabu" for switching on-off light in our University. He switches on-off the lights in a corridor. Every bulb has its own toggle s原创 2015-01-01 10:57:58 · 434 阅读 · 0 评论