跳到正文

个人记录

教你制作彩虹题

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

文章信息

发布
2023年10月5日
收录
2025年12月12日
更新
2026年11月12日
篇幅
约 2 分钟
获赞
1

版本

  1. v1当前

效果:https://www.luogu.com.cn/problem/U294569

首先下载 data.zip,然后上传到题目测试点中,然后在题目标签中选择 Special Judge,然后提交下面的代码:

C++
#include<bits/stdc++.h>
using namespace std;
int MLE(){
	new int[114514];
	return MLE();
}
int main(){
	ios_base::sync_with_stdio(false);
	int a;cin>>a;
	if(a==1){ // AC
		cout<<"AC";
	}
    if(a==2){ // WA
		cout<<"WA";
	}
    if(a==3){ // RE
		return 114514;
	}
    if(a==4){ // MLE
		cout<<MLE();
	}
    if(a==5){ // TLE
		while(1);
	}
    if(a==6){ // OLE
		string n="688888777777777777777777777777777777777777777777777777777777";
		while(1)cout<<n;
	}
    if(a==7){ // UKE
		cout << "UKE";
    }
	return 0;
}

最后,彩虹题就做好了。


下面是按照此方法制作成功彩虹题的人:

私信我展示,费用 11 关注。

  • 我:U294569
原文