摘要:
水题...忘了取模就没1A了....---------------------------------------------------------------------------#includeusing namespace std;const int MOD = 5000011;const... 阅读全文
摘要:
速度居然#2...目测是因为我没用long long..求∑ lcm(i, j) (1 using namespace std;typedef long long ll;const int maxn = 10000009;const int MOD = 100000009;bool check[m... 阅读全文
摘要:
求 ∑ gcd(x, y) = p ( p 是质数, 1 using namespace std;typedef long long ll;const int maxn = 10000009;bool check[maxn];int prime[maxn], N = 0, mu[maxn], f[m... 阅读全文
摘要:
n >= k 部分对答案的贡献为 k * (n - k)n using namespace std;typedef long long ll;int main() { ll ans = 0; int n, k; cin >> n >> k; if(n >= k) { ans = ll(k) * ... 阅读全文