诗朗诵:追忆
缺省源
/*
_____
/ \ This is a jelly bean.
\_____/ Jelly beans don't judge your flaws.
May the God of Jelly Beans bless all OIers!
*/
#include<bits/stdc++.h>
using namespace std;
#define LL long long
inline LL read(){
char ch=getchar();
int w=1;
LL s=0;
while(ch<'0'||ch>'9'){
if(ch=='-')w*=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
s=(s<<3)+(s<<1)+(ch^48);
ch=getchar();
}
return w*s;
}
inline void write(LL n){
if(n<0)putchar('-'),n=-n;
if(n>9)write(n/10);
putchar(n%10+'0');
return ;
}
int main(){
return 0;
}
二代缺省源
/*
____
/。 \/| This is the Fish Deity.
\____/\| The Fish Deity doesn't judge your flaws.
The Fish Deity will bless you !
*/
#include<bits/stdc++.h>
using namespace std;
#define LL long long
inline LL read(){
char ch=getchar();
int w=1;
LL s=0;
while(ch<'0'||ch>'9'){
if(ch=='-')w*=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
s=(s<<3)+(s<<1)+(ch^48);
ch=getchar();
}
return w*s;
}
inline void write(LL n){
if(n<0)putchar('-'),n=-n;
if(n>9)write(n/10);
putchar(n%10+'0');
return ;
}
int main(){
return 0;
}
神秘小技巧
判断奇偶性:(偶数为 )
写 freopen !!!
开 long long !!!
注意无向图开二倍边空间 !!!
多测清空 !!!
并查集初始化 !!!
线段树开始前建树 !!!
priority_queue 是大根堆,如果想变成小根堆应该在 operator 声明 a>b
这段代码给我焊死在脑子里!!!
对拍(不背死,比赛必备)
#include<bits/stdc++.h>
using namespace std;
#define LL long long
int main(){
while(1){
system("./造输入");
system("./baoli");
LL t1=clock();
system("./std");
LL t2=clock();
if(system("diff std.out baoli.out")){
cout<<"WA\n";
break;
}
if(t2-t1>CLOCKS_PER_SEC){
cout<<"TLE\n";
break;
}
else cout<<"AC! "<<(t2-t1)*1.0/CLOCKS_PER_SEC*1000<<"ms\n";
}
return 0;
}#include<bits/stdc++.h>
using namespace std;
#define LL long long
int main(){
while(1){
system("造输入.exe");
system("baoli.exe");
LL t1=clock();
system("std.exe");
LL t2=clock();
if(system("fc std.out baoli.out")){
cout<<"WA\n";
break;
}
if(t2-t1>CLOCKS_PER_SEC){
cout<<"TLE\n";
break;
}
else cout<<"AC! "<<(t2-t1)*1.0/CLOCKS_PER_SEC*1000<<"ms\n";
}
return 0;
}
dijkstra找最短路时的结构体声明。
struct node{
LL pos,v;
inline bool operator <(node b) const {
return v>b.v; //是大于!!!
}
};
priority_queue<node>pq;链式前向星
LL edgecnt,head[M<<1];//开二倍空间!!!!
struct EDGE{
LL u,v,w,nxt;
}edge[M<<1];//开二倍空间!!!
void add(LL x,LL y,LL z){
edge[++edgecnt]={x,y,z,head[x]};
head[x]=edgecnt;
}快读快写
inline LL read(){
char ch=getchar();
int w=1;
LL s=0;
while(ch<'0'||ch>'9'){
if(ch=='-')w*=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
s=(s<<3)+(s<<1)+(ch^48);
ch=getchar();
}
return w*s;
}
inline void write(LL n){
if(n<0)putchar('-'),n=-n;
if(n>9)write(n/10);
putchar(n%10+'0');
return ;
}这是一颗糖豆
/*
_____
/ \ This is a sugar bean.
\_____/ Sugar beans don't judge your flaws.
May the God of Sugar Beans bless all OIers!
*/里程碑
2024年3月10日 注册洛谷账号
2024年4月19日 参加第一场洛谷比赛
2024年4月25日 首蓝
2024年5月1日 发布第一篇专栏
2024年10月5日 首紫
2024年11月1日 过猪国杀
2024年12月23日 红名了!!!
2025年1月4日 洛谷刷题量过
2025年1月24日 首黑
2025年11月24日 级蓝勾!!!
里程悲
2024年5月7日 题解 B3958 [GESP202403 四级] 相似字符串 因 没有使用LaTex ,被打回。
2024年7月15日 因 多测未清空 ,在八十中模拟赛痛失 分。
2025年5月2日 因 注释#define yrs 在梦熊CSP-S模拟赛痛失 分。
2025年5月3日 题解 P12404 「CZOI-R3」可爱棉羊 因 \max 没有写 \ ,被打回。
2025年7月12日 因 最大值开小 在八十中模拟赛痛失 分。
2025年7月15日 因 数组开小 在八十中模拟赛痛失 分。
2025年7月16日 因 未特判特殊样例 在八十中模拟赛痛失 分。
2025年7月19日 因 未特判特殊样例 在八十中模拟赛痛失 分。
2025年7月27日 因 猜错结论 在八十中梦熊模拟赛痛失 分。
2025年7月29日 在八十中模拟赛用 dijkstra 求树上最短路,倍增LCA 求在以 为根的树上, 与 的 LCA。感觉整个人都傻了。
2025年8月4日 因 写错变量名,在线段树专项练习赛中痛失 分,与AK失之交臂。
2025年8月19日 因 求正半轴定义的函数的负半轴最小值,在八十中模拟赛痛失 分。
2025年8月20日 因 文件读写写错,.out 没写 .,在八十中模拟赛痛失 分。
2025年10月3日 因组合数未 特判选取数为负数,在八十中模拟赛浪费 小时。
2025年10月4日 因 取模后直接除 在八十中模拟赛痛失 分。
2025年11月15日 因 式子化简错误 在八十中模拟赛痛失 分。
2026年1月1日 因 赛时未调出C题暴力,在八十中省选模拟赛痛失 分。
一些好的专栏
bitset 常用操作及函数
string 常用操作及函数
map 常用操作及函数
宝藏网站
OI-Wiki
图形编辑器
图形计算器-GeoGebra
排列组合计算器
进制转化计算器
在线文本比较
文本查重率
80官网
组合数学
查看讨论 使用方法:在后面加上帖子编号,帖子编号可以通过打开被删掉的帖子查看
- 保存站更新:
www.luogu.me/user/用户id可以查看用户主页。
南外
矩阵乘法模拟器
梦熊
原题机
CPRet
能不能好好说话
可画
统计图绘制
便贴
我的便贴
qoj
PPT制作
用来放松的网站
OI重开模拟器
OI教练模拟器
高级OI教练模拟器
OI教练模拟器破解版
小花
康威生命游戏
文化课重开模拟器
穿越历史
人类基准测试
来自note2
florr.io:控制一个花朵在地图上移动、攻击敌人、收集花瓣升级,玩法类似“吃鸡”+“贪吃蛇”的混合体,节奏快、竞争激烈。
digdig.io:以挖掘和碰撞为核心,玩家控制角色在地图上挖洞、碰撞对手,通过升级获得更强能力。
generals.io:实时策略类游戏,玩家作为将军占领领土、发展军队,与全球玩家争夺地图控制权,策略性较强。
kiomet.com:一款多人在线竞技游戏,玩家控制小球在地图上移动、吞噬、对抗,类似“大鱼吃小鱼”的机制。
yorg.io:塔防类 .io 游戏,玩家建造防御塔抵御敌人进攻,支持多人合作或对抗。
bloxd.io:类似“吃豆人”+“贪吃蛇”的玩法,玩家控制方块在网格地图上移动、吃豆、避开对手,可进行多人对战。
kirka.io:多人射击类游戏,玩家使用不同武器在地图上战斗,支持团队竞技和自由对战。
territorial.io:以占领领土为核心,玩家通过移动和扩张来控制地图区域,与他人争夺资源与空间。
suroi.io:融合了生存、建造与射击元素,玩家在地图上收集资源、建造掩体、与其他玩家战斗,生存到最后。
mk48.io:类似“吃鸡”玩法的多人射击游戏,玩家空降地图、搜寻武器、淘汰对手,是经典的 .io 射击竞技。
造数据
造输入
# include <bits/stdc++.h>
using namespace std;
#define LL long long
char c[100] ;
inline LL read(){
char ch=getchar();
int w=1;
LL s=0;
while(ch<'0'||ch>'9'){
if(ch=='-')w*=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
s=(s<<3)+(s<<1)+(ch^48);
ch=getchar();
}
return w*s;
}
inline void write(LL n){
if(n<0)putchar('-'),n=-n;
if(n>9)write(n/10);
putchar(n%10+'0');
return ;
}
LL rd(LL a, LL b) {
static std::random_device rd; // 硬件随机数种子
static std::mt19937_64 gen(time(0)); // 64位梅森旋转算法
std::uniform_int_distribution<LL> dis(a, b);
return dis(gen);
}
int main()
{
srand(time(0)) ;
for (int aaaa = 1;aaaa<=10;aaaa++){//aaaa的循环是测试点编号
string s = "T572037_"+to_string(aaaa)+".in" ;//测试点头命名
strcpy(c,s.data()) ;
freopen(c ,"w" , stdout) ;
//下面是需要输出的内容
/*
cout<<30<<endl;
for(int j=1;j<=30;j++){
int n = rand() % 7;
cout<<cards[n]<<" ";
}
for(int j=1;j<=6;j++){
for(int k=1;k<=5;k++){
int n=rand()%6;
cout<<cards[n]<<" ";
}
cout<<endl;
}
*/
}
return 0 ;
}造输出
# include <bits/stdc++.h>
using namespace std;
string ss = "T572037_" ;//测试点头命名
#define LL long long
int main() {
char c[100] ;
for (int aaaa = 1;aaaa<=10;aaaa++){//aaaa的循环是测试点编号
string s = ss+to_string(aaaa)+".in" ;
strcpy(c,s.data()) ;
freopen(c ,"r" , stdin) ;
s = ss+to_string(aaaa)+".out" ;
strcpy(c,s.data()) ;
freopen(c ,"w" , stdout) ;
//下面是需要输出的内容
}
return 0 ;
}输入
while(scanf("%lld%lld%lld",&l,&r,&x)!=EOF)图的判环(不知道干嘛用的?)
图的判环
void cntring(int pos,int fa)
{
if(flag)return ;
if(!f[pos])f[pos]=fa;
else if(f[pos]!=fa)
{
while(fa!=pos)
{
ring[fa]=1;
fa=f[fa];
}
ring[pos]=1;
flag=1;
return ;
}
for(int i=0;i<edgs[pos].size();i++)
if(edgs[pos][i]!=fa)
cntring(edgs[pos][i],pos);
}