摘要: https://www.luogu.org/problem/show?pid=1390 洛谷大佬的题解 设f(n)=gcd(1,n)+gcd(2,n)+gcd(3,n)+…+gcd(n-1,n), 则结果为f(2)+f(3)+…+f(n) 由于所有gcd(x,n)的值都是... 阅读全文
posted @ 2017-04-25 10:59 largecube233 阅读(195) 评论(0) 推荐(0) 编辑
摘要: https://vijos.org/p/1579 题解在这里 http://blog.csdn.net/fop_zz/article/details/70670069 但是代码我的好#include#include#include#include#include#define Ll... 阅读全文
posted @ 2017-04-25 09:37 largecube233 阅读(148) 评论(0) 推荐(0) 编辑