首页 > 爱音开灯
头像 endlessp
发表于 2024-06-10 19:08:23
本题主要是简单的贪心 + 素数筛变化为约数筛 注意是无穷个灯随着n进行变化 #include<bits/stdc++.h> using namespace std; #define ll long long #define pll pair<ll,ll> #define PI 展开全文
头像 CodingKnight
发表于 2025-12-05 13:39:47
筛就完了。 #include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios::sync_with_stdio(0); cin.tie(0); ll n, x 展开全文

等你来战

查看全部