文章分类 -  C++ / C++模版

摘要:共需内容: create.exe 数据生成器 match.exe 匹配程序 check.exe 正解 test.exe 测试程序 以 A+B Problem 为例示范: create.cpp #include<bits/stdc++.h> using namespace std; #define r 阅读全文
posted @ 2024-02-22 14:52 HaneDaniko 阅读(27) 评论(0) 推荐(1) 编辑
摘要:#include<bits/stdc++.h> using namespace std; class MMMW{ public: deque<int> d1,d2; int a[1001],k; void out1(int id){ if(!d1.empty()&&d1.front()==id){ 阅读全文
posted @ 2024-02-21 21:50 HaneDaniko 阅读(29) 评论(0) 推荐(0) 编辑
摘要:支持单点修改与区间查询的普通树状数组 int sum(int l,int r) 求区间 [l,r] 的和 void change(int id,int changevalue) 将 id 的值增加 changevalue struct BIT{ int n; int t[100001]; inlin 阅读全文
posted @ 2024-02-18 10:05 HaneDaniko 阅读(72) 评论(4) 推荐(1) 编辑
摘要:具体功能: /* Copyright: HaneDaniko Date: 15/02/24 12:13 Version 3.0 */ //I - 高精度容器的输入、输出和赋值 high_precision_vector a,b; a.input(); //以字符串形式输入 a=1; //使用(lon 阅读全文
posted @ 2024-02-15 08:08 HaneDaniko 阅读(36) 评论(0) 推荐(1) 编辑
摘要:该封装的实用例见 基于字符串的高精度容器 3.0 封装功能(目前) Public成员 string return_string; vector return_vector; 计算返回的值都通过它们存储调用。 功能函数 void clear() string in_change_string(vect 阅读全文
posted @ 2024-02-08 21:15 HaneDaniko 阅读(52) 评论(1) 推荐(0) 编辑
摘要:没啥大用,主要是想写练练手,而且还没写完 class ForwardStar{ private: struct edge{ char id; int next; int to; int weight; }; vector<edge> e; vector<int> first; public: voi 阅读全文
posted @ 2024-02-08 21:11 HaneDaniko 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Updated : 彻底修好了(乐) 成员变量 int n 矩阵行 int m 矩阵列 int mod 运算关于mod取模 bool ifmod 若mod为0则为0,否则为1. 主要用于加快运行速度. unsigned long long mat 矩阵 成员函数 void clear() 清空所有成 阅读全文
posted @ 2024-02-08 21:10 HaneDaniko 阅读(24) 评论(0) 推荐(0) 编辑
摘要:声明:用了就寄,完整版在 隔壁. 记下来只是看看之后的自己能不能救活这坨玩意. Updated : 不写类了,写个结构体的重载矩阵运算。还方便一点 #define maxlen 101 struct matrix{ int n,m,mod; bool ifmod; long long mat[max 阅读全文
posted @ 2024-02-08 21:09 HaneDaniko 阅读(12) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示