HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
18858829212
https://www.luogu.com.cn/discuss/1211824
加训线性基 https://www.cnblogs.com/Troverld/p/14621434.html
4126332qalw2.vicp.fun
https://www.luogu.com.cn/training/674742#problems
749314 744702
https://wxredian.com/art?id=bbd39567c01bfe03920b9f2774aad1cd
https://csacademy.com/app/graph_editor/
https://www.luogu.com.cn/problem/P12544
18858829212
#include <stdio.h>
#include <string>
using namespace std;
bool no_find( const char *p ) {
return freopen( p, "r", stdin ) ? 0 : 1;
}
void out_to( const string file, const string str ) {
if( no_find(&file[0]) ) {
freopen ( &file[0], "w", stdout );
printf( "%s", &str[0] );
}
}
int main(){
string s,name;
printf( "Title: \n\n");
char ch = getchar();
while(ch!='\n') s+=ch,ch=getchar();
name = "check_" + s + ".bat";
out_to( s+".cpp" , "#include <stdio.h>\nint main(){\n\tfreopen( \""+s+".in\", \"r\", stdin );\n\tfreopen( \""+s+".out\", \"w\", stdout );\n\t\n\treturn 0;\n}" );
out_to( s+"2.cpp" , "#include <stdio.h>\nint main(){\n\tfreopen( \""+s+".in\", \"r\", stdin );\n\tfreopen( \""+s+".ans\", \"w\", stdout );\n\t\n\treturn 0;\n}" );
out_to( "data_generator_" + s + ".cpp","#include <stdio.h>\n#include <random>\n#include <time.h>\nusing namespace std;\nmt19937_64 rnd(time(0));\ntypedef long long LL;\nLL Rand(LL l,LL r) { return rnd()%(r-l+1)+l; }\nint main(){\n\tfreopen( \""+s+".in\", \"w\", stdout );\n\t\n\treturn 0;\n}" );
out_to( s+".in","" );
out_to( s+".out", "" );
out_to( s+".ans", "" );
freopen( &name[0], "w", stdout );
printf( ":loop\ndata_generator_%s.exe\n%s.exe\n%s2.exe\nfc %s.out %s.ans\nif errorlevel==1 pause\ngoto loop", &s[0], &s[0], &s[0], &s[0], &s[0] );
return 0;
}#include <bits/stdc++.h>
using namespace std;
#define db if(DEBUG)
#define printf db printf
#define F first
#define S second
#define see cerr<<"Running on line "<<__LINE__<<endl;
#define ass(x) if(!(x))cerr<<"ERROR on line "<<__LINE__<<endl;
typedef long long LL;
typedef unsigned long long ull;
typedef long double ld;
typedef __int128 bigint;
typedef unsigned __int128 biguint;
namespace IN{
#define getchar() (__READ_P1==__READ_P2 && (__READ_P2=(__READ_P1=__READ_BUF)+fread(__READ_BUF,1,1000000,stdin)), __READ_P1==__READ_P2 ? EOF : *__READ_P1++)
char __READ_BUF[1000000], *__READ_P1 = __READ_BUF, *__READ_P2 = __READ_BUF;
void read(char &x) {
char ch=getchar();
while(ch<'!' || ch>'~') ch=getchar(); x=ch;
}
void read(char *p) {
char ch=getchar();
while(ch<'!' || ch>'~') ch=getchar();
while(ch<='~' && ch>='!') *(p++)=ch, ch=getchar(); *p='\0';
}
#define read_for_signed(T)\
void read(T &x) {\
char ch=getchar(); bool flag=false; x=0;\
while(ch<'0' || ch>'9') ch=='-' && (flag=true) , ch=getchar();\
while(ch<='9' && ch>='0') x=(x<<1)+(x<<3)+(ch^48), ch=getchar();\
flag && (x=-x);\
}
read_for_signed(short)
read_for_signed(int)
read_for_signed(long)
read_for_signed(long long)
read_for_signed(bigint)
#define read_for_unsigned(T)\
void read(T &x) {\
char ch=getchar(); x=0;\
while(ch<'0' || ch>'9') ch=getchar();\
while(ch<='9' && ch>='0') x=(x<<1)+(x<<3)+(ch^48), ch=getchar();\
}
read_for_unsigned(unsigned char)
read_for_unsigned(unsigned short)
read_for_unsigned(unsigned int)
read_for_unsigned(unsigned long)
read_for_unsigned(unsigned long long)
read_for_unsigned(biguint)
void read(string&x) {
char ch=getchar();
while(ch<'!' || ch>'~') ch=getchar();
while(ch<='~' && ch>='!') x+=ch, ch=getchar();
}
#define read_for_float(T)\
void read(T &x) {\
char ch=getchar(); bool flag=false; x=0;\
while(ch<'0' || ch>'9') ch=='-' && (flag=true), ch=getchar();\
while(ch<='9' && ch>='0') x=x*10+(ch^48), ch=getchar();\
if(ch=='.') {\
T w=T(0.1); ch=getchar();\
while(ch<='9' && ch>='0')\
x+=w*T(ch^48),w*=0.1,ch=getchar();\
}\
}
read_for_float(float)
read_for_float(double)
read_for_float(ld)
template <class T, class ... Args>
void read( T&& t, Args&& ... rest ) {
read(std::forward<T>(t));
using expander = int[];
(void)expander{0, (void(read(std::forward<Args>(rest))), 0)...};
}
}
namespace OUT{
char __OUT_BUF[1000000],*__OUT_P1=__OUT_BUF,Stack[50];
const char *__OUT_P2=__OUT_BUF+sizeof(__OUT_BUF);
#define putchar(a) ( __OUT_P1==__OUT_P2 && put_buf, *__OUT_P1++=(a) )
#define put_buf ( fwrite(__OUT_BUF,1,__OUT_P1-__OUT_BUF,stdout) && (__OUT_P1=__OUT_BUF) )
#define exit put_buf,exit
void print(char x) { putchar(x); }
#define print_for_cstr(T)\
void print(T p) {\
int len = strlen(p), put;\
while(len)\
put = len<__OUT_P2-__OUT_P1 ? len:__OUT_P2-__OUT_P1,\
memcpy( __OUT_P1, p, put ),\
p += put, __OUT_P1+=put, len -= put, \
__OUT_P1==__OUT_P2 && put_buf;\
}
print_for_cstr(char*)
print_for_cstr(const char*)
void print(const string &x) {
int len = x.size(), put;
const char *p = &x[0];
while(len)
put = len<__OUT_P2-__OUT_P1 ? len:__OUT_P2-__OUT_P1,
memcpy( __OUT_P1, p, put ),
p += put, __OUT_P1+=put, len -= put,
__OUT_P1==__OUT_P2 && put_buf;
}
#define print_for_signed(T)\
void print(T x) {\
x<0 && putchar('-') && (x=-x) || x==0 && putchar('0');\
char *top=Stack;\
while(x!=0) *top++=x%10^48, x/=10;\
while(top--!=Stack) putchar(*top);\
}
print_for_signed(short)
print_for_signed(int)
print_for_signed(LL)
print_for_signed(bigint)
#define print_for_unsigend(T)\
void print(T x) {\
x==0 && putchar('0');\
char *top=Stack;\
while(x!=0) *top++=x%10^48, x/=10;\
while(top--!=Stack) putchar(*top);\
}
print_for_unsigend(unsigned char)
print_for_unsigend(unsigned short)
print_for_unsigend(unsigned int)
print_for_unsigend(ull)
print_for_unsigend(biguint)
template <class T, class ... Args>
void print( T t, Args ... rest ) {
print(t);
using expander = int[];
(void)expander{0, (void(print(rest)), 0)...};
}
}
using namespace IN;
using namespace OUT;
void Main();
int main() {
Main(); put_buf;
return 0;
}