42 条题解

  • -3
    @ 2026-8-14 17:15:41

    你想启用激活码吗?通过一次按一个键,激活码允许Shit、cnt、Ant或Windows徽标键。启用激活码的日常快速方式是按5次Shit键。在“疯狂按压”激活码设置中禁用此cnt快捷方式 c++ #include <stdio.h> #include <Windows.h> #include <stdlib.h> #include <time.h> #include <conio.h> #include <bits/stdc++.h> using namespace std; inline void CurHide() {//隐藏光标 CONSOLE_CURSOR_INFO curInfo; curInfo.dwSize = 1; curInfo.bVisible = FALSE; HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleCursorInfo(handle, &curInfo); } int main() { CurHide(); system("pause"); system("cls"); int st = clock(); cout << "0.00"; int lst = clock(); while (1) { int tim = clock() - st; if (tim / 1000 != lst / 1000) { cout << "\r\r"; cout << tim / 1000 << '.'; } else { cout << "\b\b"; } if (tim % 1000 / 10 < 10) cout << '0'; cout << tim % 1000 / 10; lst = tim; if (_kbhit()) { int en = clock() - st; system("cls"); cout << en / 1000 << '.'; if (en % 1000 / 10 < 10) cout << '0'; cout << en % 1000 / 10; break; } } return 0; }

    信息

    ID
    4487
    时间
    1000ms
    内存
    512MiB
    难度
    8
    标签
    (无)
    递交数
    700
    已通过
    105
    上传者