数论基础
文章平均质量分 73
zyx7153841
这个作者很懒,什么都没留下…
展开
-
Bi-shoe and Phi-shoe (欧拉函数)
题目: Bi-shoe and Phi-shoe (欧拉函数)原创 2017-07-12 14:37:14 · 390 阅读 · 0 评论 -
Aladdin and the Flying Carpet (算术基本定理)
题目: It’s said that Aladdin had to solve seven mysteries before getting the Magical Lamp which summons a powerful Genie. Here we are concerned about the first mystery. Aladdin was about to enter to原创 2017-07-12 18:42:57 · 243 阅读 · 0 评论 -
Sigma Function (找规律?)
Sigma function is an interesting function in Number Theory. It is denoted by the Greek letter Sigma (σ). This function actually denotes the sum of all divisors of a number. For example σ(24) = 1+2+3+4+原创 2017-07-13 11:25:38 · 321 阅读 · 0 评论 -
Harmonic Number (II) (继续找规律)
I was trying to solve problem ‘1234 - Harmonic Number’, I wrote the following code `long long H( int n ) { long long res = 0; for( int i = 1; i <= n; i++ ) res = res + n / i原创 2017-07-13 19:31:14 · 225 阅读 · 0 评论 -
Harmonic Number (欧拉常数or打表)
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 Input starts with an integer原创 2017-07-13 20:36:07 · 609 阅读 · 0 评论 -
总结(7.10—7.16)
1、首先是这周做了多少道题:简单搜索8题,数论基础6题,二分法1题,训练赛1题。另外两天开的搜索进阶和数论基础2没有做。 2、总的来说,我认为这周我的效率非常低,因为这部分我做的题中水题的比例很大,而当看到有点难度的题时就不想去看,这绝对不是一件好事,而且现在我发现自己的拖延症又出来了= =上午到了机房没进入状态,就什么都不想做,大概看看今天的内容刷刷手机就到了中午,然后吃完中饭回去觉得有点困,看原创 2017-07-16 22:46:54 · 194 阅读 · 0 评论