合集-C++算法代码模板

摘要:高精度加法: #include<bits/stdc++.h> #define endl '\n' using namespace std; string s1,s2; int la,lb,lc; int a[505],b[505],c[505]; void strtoint(string str,i 阅读全文
posted @ 2025-02-04 21:17 2789617221guo 阅读(6) 评论(0) 推荐(0)
摘要:C++常用代码模板 快速读入 inline int read(){ register int s=0,w=1; char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();} while(ch>='0'&&ch<='9' 阅读全文
posted @ 2025-02-18 18:17 2789617221guo 阅读(8) 评论(0) 推荐(0)
摘要:【个人笔记】BST(Binary Search Tree)二叉搜索树代码模板 #include <bits/stdc++.h> #define endl '\n' using namespace std; const int INF = 0x7fffffff; const double EPS = 阅读全文
posted @ 2025-02-24 20:41 2789617221guo 阅读(1) 评论(0) 推荐(0)