跳到正文

shivering

1005696

ZTT没有文煜

2026年12月1日抓取时,洛谷已只让登录用户或作者本人查看这个页面。下面是本站之前保存的内容。

在洛谷打开
资料、奖项与版本

资料

编号
1005696
抓取

版本

抓取失败
洛谷只让登录用户或作者查看
  1. v1当前

https://greasyfork.org/zh-CN/scripts/473126-vjudge

C++
#include<bits/stdc++.h>
#include<windows.h>
#define key(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0) 
using namespace std;
int shake[4][4]={{3,0},{0,-3},{-3,0},{0,+3}};
void qmWindows(HWND hwnd,int a,int b,int c,int d){
	RECT rect;
	GetWindowRect(hwnd,&rect); 
	MoveWindow(hwnd,rect.left+a,rect.top+b,rect.right-rect.left+c,rect.bottom-rect.top+d,TRUE);
}
void gbc(BOOL a){
	HANDLE gb =GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO cursor_info;
	GetConsoleCursorInfo(gb,&cursor_info);
	cursor_info.bVisible=a;
	SetConsoleCursorInfo(gb,&cursor_info);
}
void move( int  x ,  int  y ){	
	COORD  point = {  x ,  y  }; 
	HANDLE  HOutput = GetStdHandle( STD_OUTPUT_HANDLE ); 
	SetConsoleCursorPosition(HOutput, point); 
}
void ksbj(){
	HANDLE a =GetStdHandle(STD_INPUT_HANDLE);
	DWORD b;
	GetConsoleMode(a,&b);
	b &= ~ENABLE_QUICK_EDIT_MODE;
	SetConsoleMode(a,b);	
}

int main(){
	int h=200,w=200;
	ksbj();
	HWND hwnd=GetForegroundWindow();
	SetWindowLong(hwnd, GWL_STYLE,GetWindowLong(hwnd, GWL_STYLE) & ~(WS_CAPTION | WS_SIZEBOX));
	long long zq=0;
	while(1){
		
		
		int cx = GetSystemMetrics(SM_CXFULLSCREEN);
		int cy = GetSystemMetrics(SM_CYFULLSCREEN);
		
		if(key(VK_LBUTTON)){
			POINT p,p1;
			GetCursorPos(&p1);
			Sleep(5);
			int zq1=zq%4;
			//cout<<zq1<<endl;
			qmWindows(hwnd,shake[zq1][0],shake[zq1][1],0,0);
			zq++;
			GetCursorPos(&p);
			qmWindows(hwnd,p.x-p1.x,p.y-p1.y,0,0);
			continue;
		}
			
		RECT rect;
		GetWindowRect(hwnd,&rect); 
		
		MoveWindow(hwnd,rect.left,rect.top,h,w,TRUE);
		
		int g=4.7,t=0;
		int p=20;
		if(rect.top<cy-rect.bottom+rect.top+p){
			while(rect.top < cy-rect.bottom+rect.top+p){
				if(key(VK_LBUTTON))
					continue;
				GetWindowRect(hwnd,&rect);
				t++;
				if(rect.top+g*t > cy-rect.bottom+rect.top+p){
					MoveWindow(hwnd,rect.left,cy-rect.bottom+rect.top+p,rect.right-rect.left,rect.bottom-rect.top,TRUE);
					if(t<=1)t=0;
				}
				else{
					qmWindows(hwnd , 0 , g*t , 0 , 0);
				}
				Sleep(10);
			}
			while(t>0){
				t--;
				if(key(VK_LBUTTON))
					continue;
				qmWindows(hwnd , 0 , -g*t*0.3 , 0 , 0);
				
				//cout<<t<<endl;
				Sleep(10);
			}
		}
	}
}

59d9b918-8ac2-48e4-b905-bd64ad9ff4ff p

希沃PRO

C++
# //Pineapple Incident题解
#include<iostream>
#define Tangminyan using namespace
#define is std
#define a ;
#define pretty int main(){
#define girl int t,s,x;
#define who cin>>t>>s>>x;
#define I if
#define will (((x-t)%s==0||(x-t-1)%s==0)&&x-t!=1&&x-t>=0)
#define love cout<<"YES"a
#define ever else cout<<"NO"a
#define till return 0
#define forever a}
Tangminyan is a pretty girl who I will love ever till forever

一个游戏

万能工具箱

好玩的

众所周知,本IKUN是大傻逼 大好人

C++
#include<bits/stdc++.h>
#define 整形 int
#define 长整形 long long
#define 输入 cin
#define 输出 cout
#define 左移 <<
#define 右移 >>
#define 加 +
#define 等于 = 
#define 返回 return
#define 使用命名空间 using namespace
#define 主函数 main 
使用命名空间 std;
整形 主函数(){
	长整形 a,b;
	输入 右移 a 右移 b;
	输出 左移 a 加 b;
	返回 0; 
}

c++20才能用

真·主页

反击控屏

c++小游戏

无敌连点器

互乘起爆符

2048(洛谷版)

2048(florr.io版)

图论在线作图

还没有收录这位用户的文章。