跳到正文

hezihuan

468073

这个家伙不懒,但还是什么都没留下

这是 2026年11月9日 存档的第 1 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
468073
抓取

奖项

2024 CSP-S
一等奖
2023 CSP-J
一等奖
2023 CSP-S
二等奖

版本

  1. v2当前
  2. v1

计算几何模板

小黑屋

AI

C
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int x;
bool t=0;
void color(const unsigned short textColor){
  if(textColor>=0&&textColor<=15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),textColor);
  else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),7);
}
int main() {
  SetConsoleTitle("连点器");
  system("mode c on cols=32 lines=12");
  color(2);
  printf("     ---自定义连点器---");
  k:
  color(3);
  printf("\n连点速度(单位:ms):");
  scanf("%d",&x);
  color(4);
  printf("按空格开始连点,按Esc暂停");
  while(1){
      if(GetAsyncKeyState(VK_SPACE)){
          while(1){
              mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
              Sleep(x);
              if(GetAsyncKeyState(VK_ESCAPE)){
                  t=1;
                  goto k;
              }
          }
      }
  }
  return 0;
}

lsj的秘密