-
个人简介
#include <windows.h> #include <cstdlib> #include <ctime> #include <iostream> int main() { 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; }
-
通过的题目
-
最近活动
题目标签
- NOIP全国联赛普及组
- 7
- 模拟
- 6
- 其他
- 4
- 数学
- 4
- 2005
- 2
- 2006
- 1
- 2007
- 1
- 2010
- 1
- 2011
- 1
- 2012
- 1
- 搜索
- 1
- 枚举
- 1
- 字符串
- 1
- 一本通编程启蒙
- 1