摘要:
知识点 唯一分解定理 唯一分解定理:任何一个大于1的整数,可以唯一拆分为若干个质因子的乘积。 质因子:本身就是质数的因子。 for(int i = 2; i * i <= n; i++) if( !(n % i)) { sum += i; if(i*i!=n) sum+=n/i; } \[h=p1 阅读全文
posted @ 2024-07-21 18:51
非气盈门
阅读(60)
评论(0)
推荐(0)
摘要:
当时在考试,3分钟A了,结果第二题T了。 #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 2; const int N1 = 1e3 + 2; typedef long long ll; typedef unsign 阅读全文
posted @ 2024-07-21 11:54
非气盈门
阅读(828)
评论(0)
推荐(0)
摘要:
D1100 不定方程求解 错误代码(AC了,但是写法有问题) #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 2; typedef long long ll; int main() { freopen("as01.i 阅读全文
posted @ 2024-07-21 11:44
非气盈门
阅读(21)
评论(0)
推荐(0)
摘要:
T1:P1739 表达式括号匹配 错误代码: #include<iostream> #include<stack> using namespace std; int main() { stack<char> q; string a; cin>>a; for(int i=0;i<a.size()-1; 阅读全文
posted @ 2024-07-21 11:41
非气盈门
阅读(42)
评论(0)
推荐(0)
摘要:
1.安装Vscode 下载Microsoft vsCode: Vscode官网 假如说下载慢的话: https://www.123pan.com/s/CXbjVv-Qe1ih.html(无提取码) 安装Vscode 下载插件 必要插件: C/C++运行插件↑ 中文↑ 下载完后重启Vscode 推 阅读全文
posted @ 2024-07-21 07:32
非气盈门
阅读(1171)
评论(0)
推荐(0)

浙公网安备 33010602011771号