D - Farey Sequence
摘要:
题目:D - Farey Sequence题目明说了:a/b with 0 #include #include #include using namespace std;typedef long long LL;const int MAXN = 1000010;LL phi[MAXN];void phi_table(int n) { //for(int i = 2; i <= n; ++i) phi[i] = 0; phi[1] = 1; for(int i = 2; i <= n; ++i) if(!phi[i]) for(int j = i; j <= n;... 阅读全文
posted @ 2013-08-19 14:08 SCNUACM 阅读(196) 评论(0) 推荐(0)
浙公网安备 33010602011771号