奇思妙想1(此系列不定时更新)
#ifndef NO_HEAD_FILE #include<bits/stdc++.h> using namespace std; #endif namespace fastIO{ #ifdef __cplusplus extern"C"{ #endif #define get getchar #define put putchar #define int signed #define ioFast ios::sync_with_stdio(0);\ cin.tie(0),cout.tie(0);//Only cin,cout inline int read(){ register int f=0,a=0,c; for(;!isdigit(c=get());c^45||++f); for(a=c&15;isdigit(c=get());a=a*10+(c&15)); f&&(a=-a);return a; } inline void write(int x){ register short n=0,ch[10]; if(!x){putchar(48);return;} if(x<0)putchar(45),x=-x; for(;x;ch[n++]=x%10,x/=10); while(n--)putchar(ch[n]+48); } #ifdef __cplusplus } #endif } namespace Algorithm{ //... } namespace MyStd{ using namespace fastIO; using namespace Algorithm; } signed main(int argv,char**argc){ using namespace MyStd; return puts(""),system("pause"); }
标签:cout,get,int,namespace,奇思妙想,define From: https://www.cnblogs.com/2021changqing52/p/17500875.html