跳到正文

个人记录

各类自动机

Clever_Cjy约 2 分钟
原文
文章信息与版本

文章信息

发布
2022年7月19日
收录
2025年12月12日
更新
2026年10月2日
篇幅
约 2 分钟

版本

  1. v2当前
  2. v1

众所周知,本人是个傻逼蒟蒻。

我不会AC自动机,大家见谅!

WA自动机(Wonderful Answer):

C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
	printf("1145141919810");
	return 0;
}

RE自动机(Run Excellent):

C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a[114514];
	printf("%d",a[1919810]);
	return 0;
}

TLE自动机(Time Limit Enough):

C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
	while(1);
}

MLE自动机(Memory Limit Enough):

C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
	main();
}

CE自动机(Compile Easily):

C++
#include<bits/stdc++.h>
using namespace std;
long long main()
{
	return 0;
}

OLE自动机(Output Limit Enough):

C++
#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	for(int i=1;i<=100;i++)
	s+="qwq";
	while(1)
	cout<<s;
	return 0;
}
原文