跳到正文

个人记录

乱搞的

chenyuan3约 4 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月27日
篇幅
约 4 分钟

版本

  1. v1当前
C++
#include <bits/stdc++.h>
#include <windows.h>
#include <conio.h>
using namespace std;
typedef long long ll;
mt19937 rnd(time(nullptr));
vector<string> a = {
	"kkk", "lzn", "lg", "cz", "PinkleRabbit", "xht", "fusu",
	"cy3", "cy33", "daipengfeng_jv_ruo", "markkkk", "fuckkkk", "taotianyi0103", "jinhangdong", "wuyuzhe", "hyc42", "HuYuChen", "CodingCoderOrz2020", "Miracle_InDream", "Carmota_Yumo", "jzaxl", "jzacx", "aka_ms", "xgw120121",
	"CSP-J", "CSP-S", "NOIp", "ZJOI", "NOI", "IOI", "APIO", "ICPC", "CCPC","CCF", "SB", "YNOI"
};
vector<string> b = {" AK ", " JC "," C "," is ", " plays ", " fuck ", " kills "};
vector<string> c = {" doesn't AK ", " doesn't JC "," doesn't C "," isn't ", " doesn't play ", " doesn't fuck ", " doesn't kill "};
vector<string> d = {"'s npy", "'s mother", "'s father", "'s friend"};
const ll max_cnt = 2;
string ad()
{
	string ret = a[rnd() % a.size()];
	for (ll cnt = rnd() % max_cnt; cnt--;)
	{
		ret += d[rnd() % d.size()];
	}
	return ret;
}
string e()
{
	switch (rnd() % 10)
	{
		case 0:
		{
			string ret = "both ";
			ll cnt = rnd() % max_cnt;
			while (cnt--)
			{
				ret += ad() + ", ";
			}
			ret += ad() + " and " + ad();
			return ret;
		}
		case 1:
		{
			string ret = "either ";
			ll cnt = rnd() % max_cnt;
			while (cnt--)
			{
				ret += ad() + ", ";
			}
			ret += ad() + " or " + ad();
			return ret;
		}
		case 2:
		{
			string ret = "neither ";
			ll cnt = rnd() % max_cnt;
			while (cnt--)
			{
				ret += ad() + ", ";
			}
			ret += ad() + " nor " + ad();
			return ret;
		}
		default: return ad();
	}
}
ll solve()
{
	while (true)
	{
		system("pause");
		cout << e() << (rnd() % 2 ? b : c)[rnd() % b.size()] << e() << endl;
	}
}
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
	solve();
	return 0;
}
原文