摘要: #include <bits/stdc++.h> #define 整型 int #define 主函数 main #define 使用 using #define 标准命名空间 namespace std #define 输入 cin #define 输出 cout #define 加 + #def 阅读全文
posted @ 2024-02-18 14:02 一个追寻光的人 阅读(28) 评论(0) 推荐(0)
摘要: 超级IO #define OPENIOBUF namespace FASTIO{ class FastIOBase{ protected: #ifdef OPENIOBUF static const int BUFSIZE=1<<16; char buf[BUFSIZE+1]; int buf_p= 阅读全文
posted @ 2024-02-11 13:22 一个追寻光的人 阅读(80) 评论(0) 推荐(0)
摘要: dijk template #include<iostream> #include<climits> #include<cmath> #include<queue> #include<vector> #define ll long long struct Node{ int to,far; }; s 阅读全文
posted @ 2024-02-04 09:50 一个追寻光的人 阅读(32) 评论(0) 推荐(0)
摘要: 前言 寒假也不要颓废哦,跟着 LightDirection 一起学习吧! Day1 复习高精度。 luogu p1601 #include<iostream> std::string a,b; int toNum(char ch){ return int(ch-48); } void zero(){ 阅读全文
posted @ 2024-01-31 21:18 一个追寻光的人 阅读(25) 评论(0) 推荐(0)
摘要: Example 有如下单词 1.abacb 2.abc 3.acb 4.aaa 5.bcb 构建字典树如下图 template #define N 3000005 #define M 70 int trie[N][M],index,cnt[N]; std::string s; namespace T 阅读全文
posted @ 2024-01-06 15:29 一个追寻光的人 阅读(42) 评论(0) 推荐(0)
摘要: 50 pts 只需要按照题目意思模拟即可,得出以下打表程序。 #include<iostream> #include<cstring> #include<cmath> int t,n; int mc(std::string x,std::string y){ int res=0; for(int i 阅读全文
posted @ 2024-01-06 11:58 一个追寻光的人 阅读(65) 评论(0) 推荐(0)