低配快读 2022-11-19 2023-03-02板子2 分钟读完 (大约239个字)0次访问😅低配快读😅 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120namespace IO{ inline int read() { int x = 0, f = 1; char ch = getchar(); while(!isdigit(ch)) { if(ch == '-') f = -1; ch = getchar(); } while(isdigit(ch)) { x =((x << 3) + (x << 1)) + (ch ^ 48); ch = getchar(); } return x * f; } inline void write(int x) { char ch[100]; int len = 0; ch[++len] = '\n'; if(x == 0) ch[++len] = '0'; if(x < 0) putchar('-'), x = -x; while(x != 0) { ch[++len] = x % 10 + '0'; x /= 10; } while(len) putchar(ch[len--]); } inline long long readL() { long long x = 0, f = 1; char ch = getchar(); while(!isdigit(ch)) { if(ch == '-') f = -1; ch = getchar(); } while(isdigit(ch)) { x =((x << 3ll) + (x << 1ll)) + (ch ^ 48ll); ch = getchar(); } return x * f; } inline void writeL(long long x) { char ch[100]; int len = 0; ch[++len] = '\n'; if(x == 0) ch[++len] = '0'; if(x < 0) putchar('-'), x = -x; while(x != 0) { ch[++len] = x % 10ll + '0'; x /= 10ll; } while(len) putchar(ch[len--]); } inline string readS() { string str = ""; char ch = getchar(); while(ch == ' ' || ch == '\n') ch = getchar(); while(ch != ' ' && ch != '\n') { str += ch; ch = getchar(); } return str; } inline void writeS(string s) { for(int i = 0; i < s.size(); i++) putchar(s[i]); putchar('\n'); } inline double readD() { double x = 0, f = 1, k = 0.1; char ch = getchar(); while(ch == ' ' || ch == '\n' || ch == '-') { if(ch == '-') f = -1; ch = getchar(); } while(isdigit(ch)) { x = x * 10 + (ch ^ 48); ch = getchar(); } if(ch == '.') { ch = getchar(); while(isdigit(ch)) { x = x + 1.0 * (ch ^ 48) * k; k *= 0.1; ch = getchar(); } } return x * f; } #define writeD(x, a) printf("%."#a"lf", x)}using namespace IO; 低配快读https://jekyll-y.github.io/2022/11/19/低配快读/作者Jekyll_Y发布于2022-11-19更新于2023-03-02许可协议#快读