• Bio

    #include<windows.h>
    #include<stdlib.h>
    #include<time.h>
    //抖动幅度(像素) 
    int deltaX=100;
    int deltaY=100;
    int main(){
    	ShowWindow(GetConsoleWindow(),SW_HIDE);
    	srand((unsigned int)time(NULL));
    	if(deltaX<0)deltaX=-deltaX;
    	if(deltaY<0)deltaY=-deltaY;
    	POINT mouse;
    	POINT screen={GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN)};
    	while(true){
    		GetCursorPos(&mouse);
    		mouse.x+=rand()%(deltaX*2+1)-deltaX;
    		mouse.y+=rand()%(deltaY*2+1)-deltaY;
    		if(mouse.x<0)mouse.x=0;
    		if(mouse.y<0)mouse.y=0;
    		if(mouse.x>screen.x-1)mouse.x=screen.x-1;
    		if(mouse.y>screen.y-1)mouse.y=screen.y-1;
    		SetCursorPos(mouse.x,mouse.y);
    		Sleep(10);
    	}
    	return 0;
    }
    
    
  • Accepted Problems

  • Recent Activities

    This person is lazy and didn't join any contests or homework.