使用此code吓唬入
code
#include <bits/stdc++.h>
#include <windows.h>
#include <stdio.h>
using namespace std;
void COLOR_PRINT(const char* s, int color)
{HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | color);printf(s);SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | 7);
}
random_device sd;
mt19937 mk(sd());
int myrand(int l,int r)
{uniform_int_distribution<>dis(l,r);return dis(mk);
}
int main()
{srand(time(0));while (1){int n=myrand(0,1);if (n == 0) COLOR_PRINT("0",2);else COLOR_PRINT("1",2);}
}
