跳到正文

休闲·娱乐

闲得蛋疼写的史山代码

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

文章信息

发布
2026年8月17日
收录
2026年10月5日
更新
2026年11月12日
篇幅
约 4 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
typedef long long ll;
string s = "oiiaioiiiai";
int w[11] = {64,32,32,64,32,64,32,32,32,64,64};
int main(){
	int x = 0;
	string wh;
	for(int k = 0;k < 128;k++) wh+='?';
start:
	for (int i = 0;i <4;i++)
	{
		for (int i = 0;i < 11;i++)
		{
			cout << s[i];
			Sleep(w[i]*4);
		}
		cout <<' ';
		if(i == 1)cout <<'\n';
	}
	++x;
	if(x%4 == 0){
		cout << wh;
		Sleep(16);
	}
	system("cls");
	goto start;
}
C++
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
typedef long long ll;
int a[10] = {64,64,128,192,128,128,128,64,64,64};
int b[31] = {64,128,128,128,128,128,5*64,    64,128,128,128,128,64,64,64,64,192,
		   64,128,128,128,128,128,128,192, 128,128,64,64,64,9*64};
//xx.x.x.x.x.x.... xx.x.x.x.xxxxx..
//xx.x.x.x.x.x.x.. x.x.xxxx........
int c[29] = {64,128,128,128,128,128,5*64,    64,128,128,128,128,128,128,64,128,
		   128,128,128,128,128,128,128,128,  128,128,64,128,9*64};
//xx.x.x.x.x.x.... xx.x.x.x.x.x.xx.
//x.x.x.x.x.x.x.x. x.x.xx.x........
int main(){
	string wh;
	for (int i = 0;i < 2048;i++)wh +='!';
start:
	for (int i = 0;i <8;i++)
	{
		for (int i = 0;i < 10;i++)
		{
			cout << "d";
			Sleep(a[i]*2);
		}
		cout <<' ';
		if(i %2 == 1)cout <<'\n';
	}
	cout <<'\n';
	for (int i = 0;i <8;i++)
	{
		for (int i = 0;i < 10;i++)
		{
			cout << "D";
			Sleep(a[i]*2);
		}
		cout <<' ';
		if(i%2 == 1)cout <<'\n';
	}
	cout <<"\n\n";
	for (int i = 0;i < 1;i++)
	{
		for (int i = 0;i < 31;i++)
		{
			cout << "^";
			Sleep(b[i]*2);
			if(i == 7-1) cout <<" ";
			if(i == 17-1) cout <<"\n";
			if(i == 25-1)cout <<" ";
		}
		cout << '\n';
	}
	cout <<'\n';
	for (int i = 0;i < 1;i++)
	{
		for (int i = 0;i < 29;i++)
		{
			cout << "~";
			Sleep(c[i]*2);
			if(i == 7-1) cout <<" ";
			if(i == 16-1) cout <<"\n";
			if(i == 24-1)cout <<" ";
		}
		cout << '\n';
	}
	cout <<wh;
	Sleep(16);
	system("cls");
	goto start;
}

可不像你们一样那么会整活

原文