摘要:
∑d=1min(n,m)d∑i=1⌊min(n,m)d⌋i2μ(i)×Sum(⌊nid⌋,⌊mid⌋) 这个公式的由来详见:http://blog.csdn.net/jeremygjy/article/details/50592588 这道题目就是Crash的数表的强化版本,因为有... 阅读全文
摘要:
我膜拜PoPoQQQ http://www.lydsy.com/JudgeOnline/problem.php?id=2154 ∑ni=1∑mj=1lcm(i,j)=∑ni=1∑mj=1i×jgcd(i,j) 令gcd(i,j)=d那么∑ni=1∑mj=1i×jgcd(i,j)=∑... 阅读全文
摘要:
题目描述: Consider a N*N*N lattice. One corner is at (0,0,0) and the opposite one is at (N,N,N). How many lattice points are visible from corner ... 阅读全文
摘要:
http://www.lydsy.com/JudgeOnline/problem.php?id=3529 让我膜拜一会儿PoPoQQQ谢谢!#include #include #include #include #include using namespace std;const ... 阅读全文