![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数论
zhangjinlei321
这个作者很懒,什么都没留下…
展开
-
Bi-shoe and Phi-shoe
题目表述:Bamboo Pole-vault is a massively popular sport in Xzhiland. And Master Phi-shoe is a very popular coach for his success. He needs some bamboos for his students, so he asked his assistant Bi-Sho...原创 2018-08-28 20:52:23 · 60 阅读 · 0 评论 -
Help Hanzo 求大区间素数个数
题目:Amakusa, the evil spiritual leader has captured the beautiful princess Nakururu. The reason behind this is he had a little problem with Hanzo Hattori, the best ninja and the love of Nakururu. Aft...原创 2018-08-27 21:21:41 · 421 阅读 · 1 评论 -
青蛙的约会
题目: 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去,总能碰到对方的。但是除非这两只青蛙在同一时间跳到同一点上,不然是永远都不可能碰面的。为了帮助这两只...原创 2018-08-27 15:44:23 · 120 阅读 · 0 评论 -
Maximum GCD
题目:https://odzkskevi.qnssl.com/fa02fde9e6b0c8050da822e55c9593e5?v=1534093437 这道题目是从给出的数里,两两进行求最大公约数,最后输出最大的最大公约数。AC代码://需要两个数组,一个是char型的,为了求输入的各个数,因为有空格的存在,所以输入比较麻烦,用数组比较容易理解一些,另一个是int型的,用来记录...原创 2018-08-15 12:13:38 · 344 阅读 · 0 评论 -
Leading and Trailing
题目:You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of .输入:Input starts with an integer T (≤ 1000), denoting the nu...原创 2018-08-14 18:58:01 · 104 阅读 · 0 评论 -
Harmonic Number
题目:In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers:In this problem, you are given n, you have to find Hn.输入:Input starts with an intege...原创 2018-08-13 19:00:14 · 110 阅读 · 0 评论 -
Large Division 判断是否整除
题目:Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only if there exists an integer c such that a = b *...原创 2018-08-10 23:59:22 · 170 阅读 · 0 评论 -
GCD Again
题目表述:Do you have spent some time to think and try to solve those unsolved problem after one ACM contest? No? Oh, you must do this when you want to become a "Big Cattle". Now you will find that thi...原创 2018-08-05 12:49:01 · 212 阅读 · 0 评论 -
Pairs Forming LCM 唯一分解定理
题目:Find the result of the following code:A straight forward implementation of the code may time out. If you analyze the code, you will find that the code actually counts the number of pairs (i, ...原创 2018-08-29 21:20:07 · 184 阅读 · 0 评论