- 2024-11-26Anji‘s Binary Tree(Round 911)
#include<bits/stdc++.h>#defineendl'\n'#defineintllusingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();constintinf=0x3f3f3f3f;signedmain(){#ifdefGordenfreopen("in.txt&q
- 2024-12-04filebeat收集日志输出到redis
目的:使用filebeat收集日志,将日志信息存储到redis---持久化存储,减轻localstorage的压力前提:安装了Elasticsearch跟filebeat,并启动Elasticsearch问题:redis安装成功,配置文件修改成功,重新启动数据库。然后在另一台节点使用nc命令模拟客户端发送数据并指定端口(在.yml
- 2024-09-14Taro(ABC 371)
#include<bits/stdc++.h>#defineendl'\n'#defineintllusingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdi
- 2024-08-17Splitting Items(Round 169)
#include<bits/stdc++.h>#defineendl'\n'#defineintllusingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdin
- 2024-07-21Array Craft(Round 960)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdin);freopen
- 2024-07-19循环位移(2024“钉耙编程”中国大学生算法设计超级联赛(1))
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();constintN=4e6+7;constintP=131;ullp[N],an[N],bn[N];intn;voidinit(stringa,stringb){
- 2024-07-11Boring Day(Round 955)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdin);freopen
- 2024-06-01Goose Goose Duck(第八届河北省大学生程序设计竞赛)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();structsb{inta,b,c;};signedmain(){#ifdefGordenfreopen("in.txt","r
- 2024-04-07Calandar(2019山东省大学生程序设计竞赛)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();map<string,int>mp;signedmain(){#ifdefGordenfreopen("in.txt","rt"
- 2024-03-23空调遥控(NC229310)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdin);freopen
- 2024-03-19JB Loves Math(The 19th Zhejiang Provincial Collegiate Programming Contest)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdin);freopen
- 2024-03-19JB Wants to Earn Big Money(The 19th Zhejiang Provincial Collegiate Programming Contest)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdin);freopen
- 2024-03-19JB Loves Comma(The 19th Zhejiang Provincial Collegiate Programming Contest)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdin);freopen
- 2024-03-15[蓝桥杯 2017 国 C] 合根植物(P8654)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();intn,m;map<int,int>fa;intfindB(intx){if(fa[x]==x)returnx;returnfa[x]=findB(
- 2024-03-15村村通(P1536)
#include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();map<int,int>fa;intfindB(intx){if(fa[x]==x)returnx;returnfa[x]=findB(fa[x]);}