跳到正文

个人记录

Love

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

文章信息

收录
2026年7月27日
更新
2026年7月27日
篇幅
约 6 分钟

版本

  1. v1当前
C
#include<bits/stdc++.h>
#include<windows.h>
#include<pthread.h> 
#include<tchar.h>
#include<sys/time.h>
#define INF 0x3f3f3f3f3f3f3f3f
#define N 2505
#define re register
#define Ii inline int
#define Il inline long long
#define Iv inline void
#define Ib inline bool
#define If inline float
#define Id inline double
#define Ic inline char
#define ll long long
#define Fill(a,b) memset(a,b,sizeof(a))
#define R(a,b,c) for(register int a=b;a<=c;++a)
#define nR(a,b,c) for(register int a=b;a>=c;--a)
#define Min(a,b) ((a)<(b)?(a):(b))
#define Max(a,b) ((a)>(b)?(a):(b))
#define Cmin(a,b) ((a)=(a)<(b)?(a):(b))
#define Cmax(a,b) ((a)=(a)>(b)?(a):(b))
#define D_e(x) printf("\n&__ %d __&\n",x)
#define STOP system("pause");
Ii read(){
    int s=0,f=1;char c;
    for(c=getchar();c>'9'||c<'0';c=getchar())if(c=='-')f=-1;
    while(c>='0'&&c<='9')s=s*10+(c^'0'),c=getchar();
    return s*f;
}
Iv print(ll x){
    if(x<0)putchar('-'),x=-x;
    if(x>9)print(x/10);
    putchar(x%10^'0');
}
Iv SetColor(unsigned short color_fore,unsigned short color_back){
	HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE);
	SetConsoleTextAttribute(hCon,(color_fore%16)|(color_back%16*16));
}
int main(){
	int i,s=0,t,a=10,b=11,c=12,d=13,e=14,z[]={32,32,206,210,207,178,187,182,196,227,33,32,32};float x,y;
	srand(time(NULL));
	for(y=1.3;y>=-1.1;y-=0.1){
		for(x=-2;x<1.4;x+=0.053){
			if(((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y)<=0){
				if(y>=1.3-10*0.1||y<=1.3-11*0.1){
					++s;
					if(s%4==1)SetColor(a,0),printf("l");
					if(s%4==2)SetColor(e,0),printf("o");
					if(s%4==3)SetColor(c,0),printf("v");
					if(s%4==0)SetColor(d,0),printf("e");
				}
				else{
					for(i=0;i<42;++i){
						if(i<=14||i>=28){
							++s;
							if(s%4==1)SetColor(a,0),printf("l");
							if(s%4==2)SetColor(e,0),printf("o");
							if(s%4==3)SetColor(c,0),printf("v");
							if(s%4==0)SetColor(d,0),printf("e");
						}
						else
							SetColor(b,0),printf("%c",z[i-15]),Sleep(50); 
					}
					break;
				}
			}
			else
				printf(" ");
			Sleep(1);
		}
		printf("\n");
	}
	printf("Ready For Love Rush?");
	Sleep(1800);
	while(1){
		system("cls");
		t=a,a=b,b=c,c=d,d=e,e=t;
		for(y=1.3;y>=-1.1;y-=0.1){
			for(x=-2;x<1.4;x+=0.053){
				if((((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y)<=0)){
					if(y>=1.3-10*0.1||y<=1.3-11*0.1){
						++s;
						if(s%4==1)SetColor(a,0),printf("l");
						if(s%4==2)SetColor(b,0),printf("o");
						if(s%4==3)SetColor(c,0),printf("v");
						if(s%4==0)SetColor(d,0),printf("e");
					}
					else{
						for(i=0;i<42;++i){
							if(i<=14||i>=28){
								++s;
								if(s%4==1)SetColor(a,0),printf("l");
								if(s%4==2)SetColor(b,0),printf("o");
								if(s%4==3)SetColor(c,0),printf("v");
								if(s%4==0)SetColor(d,0),printf("e");
							}
							else
								SetColor(e,0),printf("%c", z[i-15]);
						}
						break;
					}
				}
				else
					printf(" ");
			}
			printf("\n");
		}
	}
}