
打表
DouglasConnor
这个作者很懒,什么都没留下…
展开
-
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.InputInput starts with an integer T (≤ 1...原创 2019-07-17 22:29:11 · 442 阅读 · 1 评论 -
HDU1286 找新朋友 欧拉函数
找新朋友Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16963 Accepted Submission(s): 9032Problem Description新年快到了,“猪头帮协会”准备搞一个聚会,已经知道现有会员N人,...原创 2019-07-24 21:27:23 · 204 阅读 · 0 评论 -
POJ3090 Visible Lattice Points 欧拉函数
Visible Lattice PointsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9734 Accepted: 5920DescriptionA lattice point (x, y) in the first quadrant (x and y are integers greater than or e...原创 2019-08-02 22:55:45 · 274 阅读 · 0 评论 -
codeforce1064B Equations of Mathematical Magic
问题链接(https://codeforces.com/problemset/problem/1064/B)问题描述有t个问题,每个问题都有一个a,问满足a−(a⊕x)−x=0的x有多少个。其中⊕为异或运算。问题分析第一反应是打表,另外写代码输出从1到a中有哪些数是满足这个式子的,并计数。观察后发现满足式子的x的个数恰好是2的a的二进制数的1的个数次方,count=2n,n为二进制数a的1...原创 2019-08-01 23:07:00 · 187 阅读 · 0 评论