跳到正文

休闲·娱乐

OI restart

seanli1008约 6 分钟
原文
文章信息与版本

文章信息

发布
2025年12月11日
收录
2025年12月12日
更新
2026年10月26日
篇幅
约 6 分钟

版本

  1. v2当前
  2. v1
C++
//CSP-S -> NOIP -> WC -> 省选 -> APIO -> NOI -> CTT -> CTS -> IOI
//ATC CF LG HDU UOJ QOJ TC LOJ
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
mt19937 rng(time(0));
int dp,ds,graph,str,math,code=1,mind=1,mood=10,rp=100,season=1;
void print_current_state(){
	cout<<"你当前的状况:"<<endl;
	cout<<"动态规划:"<<dp<<endl;
	cout<<"数据结构:"<<ds<<endl;
	cout<<"图论:"<<graph<<endl;
	cout<<"字符串:"<<str<<endl;
	cout<<"数学:"<<math<<endl;
	cout<<"代码能力:"<<code<<endl;
	cout<<"思维能力:"<<mind<<endl;
	cout<<"心态:"<<mood<<endl;
	cout<<"人品:"<<rp<<endl;
}
void study(){
	cout<<"你要卷什么?"<<endl;
	cout<<"1. 动态规划"<<endl;
	cout<<"2. 数据结构"<<endl;
	cout<<"3. 图论"<<endl;
	cout<<"4. 字符串"<<endl;
	cout<<"5. 数学"<<endl;
	cout<<"请输入 1-5 的一个整数表示你的选择。"<<endl;
	int x;
	cin>>x;
	while(x<1 || x>5){
		cout<<"不合法输入,请重新选择。"<<endl;
		cin>>x;
	}
	int res=rng()%10;
	if(res==0){
		cout<<"你学到了一些东西!"<<endl;
		if(x==1)
			dp++;
		else if(x==2)
			ds++;
		else if(x==3)
			graph++;
		else if(x==4)
			str++;
		else
			math++;
	}
	else if(res>0 && res<=5)
		cout<<"你啥也没学会。"<<endl;
	else{
		cout<<"你感觉这些知识点好难,心态 -2。"<<endl;
		mood-=2;
	}
}
void florr(){
	int res=rng()%10;
	if(res==0){
		cout<<"你 5=1 一张 Super!!!心态 +5!"<<endl;
		mood+=5;
		rp=max(rp-50,0);
	}
	else if(res==1 || res==2){
		cout<<"U drop U,心态 +3!"<<endl;
		mood+=3;
		rp=max(rp-20,0);
	}
	else if(res>2 && res<8)
		cout<<"无事发生。"<<endl;
	else{
		cout<<"200 U=0!心态 -3。"<<endl;
		mood-=3;
		rp+=10;
	}
}
int main(){
	cout<<"OI 重开模拟器 developed by seanli1008"<<endl;
	cout<<"idea from lg"<<endl;
	Sleep(1000);
	system("cls");
	cout<<"参加完 3301 年的 NOIP 后,你被黄紫黑黑创飞原地 AFO。"<<endl;
	cout<<"你躺在床上,闭上眼,回想起自己曾经在 OI 赛场上挥洒汗水的场景。"<<endl;
	cout<<"眼泪还是流了出来。你不甘心,你觉得你还可以做得更好。"<<endl;
	cout<<"你突然惊醒,发现自己回到了高一前的暑假。"<<endl;
	cout<<"之前经历的一切仿佛是一场梦,却又那么真实。"<<endl;
	cout<<"你意识到,这一次,你还有机会。"<<endl;
	cout<<"你决定,这一次,让 OI 生涯不留遗憾。"<<endl;
	Sleep(3000);
	system("cls");
	cout<<"你有 30 个天赋点,请你自行分配。请输入一行整数,表示你分配的对应的能力的天赋点。"<<endl;
	cout<<"这些能力依次为:动态规划;数据结构;图论;字符串;数学"<<endl;
	cin>>dp>>ds>>graph>>str>>math;
	while(dp+ds+graph+str+math!=30){
		cout<<"不合法输入,请重新分配"<<endl;
		cin>>dp>>ds>>graph>>str>>math;
	}
	Sleep(200);
	system("cls");
	while(season<=2){
		for(int i=1;i<=16;i++){
			print_current_state();
			if(i==16){
				cout<<"CSP-S 前夕"<<endl;
				cout<<"现在,你该做什么好呢?"<<endl;
				cout<<"1. 放松,效果:心态 +2"<<endl;
				cout<<"2. 卷题,效果:?"<<endl;
				cout<<"3. play florr,效果:?"<<endl;
				cout<<"4. play zorr,效果:?"<<endl;
				cout<<"5. play wake-up-war,效果:?"<<endl;
				cout<<"输入 1-5 中的数字表示你的选择。"<<endl;
				int op;
				cin>>op;
				while(op<1 || op>5){
					cout<<"不合法输入,请重新选择"<<endl;
					cin>>op;
				}
				if(op==1)
					mood+=2;
				else if(op==2)
					study();
				else if(op==3)
					florr();
				else if(op==4)
					zorr();
				else
					wake_up_war();
			}
			cout<<"CSP-S 即将到来... ("<<i<<"/16)"<<endl;
		}
	}
	return 0;
}
原文