首页 > 小红的k次方
头像 LH_Coffee
发表于 2026-02-01 11:34:59
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); // IO加速,适配大数据量 int n 展开全文
头像 周康禧
发表于 2025-12-09 11:10:41
#include <bits/stdc++.h> using namespace std; using ll = long long int; using ld = long double; using PII=pair<ll,ll>; using PIII=pair< 展开全文
头像 金刚侠
发表于 2025-12-22 20:30:41
#include <iostream> using namespace std; #include <algorithm> int cnt(int x,int fac){ int ans=0; while(x%fac==0){ ans++; 展开全文
头像 自由的风0450
发表于 2025-11-14 16:45:51
#include <iostream> using namespace std; int main() { int n; cin>>n; int cnt2=0,cnt3=0,cnt5=0; for(int i=0;i<n;i++){ 展开全文
头像 Erua
发表于 2026-02-11 21:11:42
#include <bits/stdc++.h> using namespace std; using ll=long long; #define endl '\n' using vi=vector<int>; using vll=vector<ll>; usin 展开全文
头像 nous1
发表于 2025-12-01 20:54:05
#include <bits/stdc++.h> #include <iostream> #include <vector> using namespace std; #define int long long signed main() { int 展开全文
头像 Drink0318
发表于 2025-12-18 10:02:07
# 数组所有元素的乘积x是30^k的倍数,等价于:x分解质因数后,2 的次数 ≥ k、3 的次数 ≥ k、5 的次数 ≥ k(缺一不可)。 #(因为如果 x 要被2^k×3^k×5^k整除,必须包含至少 k 个 2、k 个 3、k 个 5 作为因数) # 题目要求 “最大的 k”,本质是: # 统 展开全文
头像 Drink0318
发表于 2025-12-18 10:02:15
# 数组所有元素的乘积x是30^k的倍数,等价于:x分解质因数后,2 的次数 ≥ k、3 的次数 ≥ k、5 的次数 ≥ k(缺一不可)。 #(因为如果 x 要被2^k×3^k×5^k整除,必须包含至少 k 个 2、k 个 3、k 个 5 作为因数) # 题目要求 “最大的 k”,本质是: # 统 展开全文
头像 Z史蒂夫
发表于 2026-01-28 16:21:20
#include <iostream> #include <algorithm> #include <numeric> using namespace std; int main() { ios::sync_with_stdio(false); 展开全文
头像 ccl_aurora
发表于 2026-01-03 14:38:59
#include <iostream> #include<algorithm> #include<cmath> using namespace std; #define ll long long int main() { int n; ll sum 展开全文