POJ3090 Visible Lattice Points (数论:欧拉函数模板)
摘要:
题目链接:传送门 思路: 所有gcd(x, y) = 1的数对都满足题意,然后还有(1, 0) 和 (0, 1)。 #include <iostream> #include <cstring> using namespace std; const int MAX_N = 1e3 + 5; int p 阅读全文
posted @ 2018-11-05 21:21 Danceped 阅读(160) 评论(0) 推荐(0) 编辑