正文
增加 4 行删除 4 行
46 行未改动4748495051525354555681 行未改动13813914014114214314414514614767 行未改动46 行未改动#define ion bw(20)char i[ion], o[ion], *icl = i, *icr = i, *oc = o;char gc() { return (icl == icr && (icr = (icl = i) + fread(i, 1, ion, stdin), icl == icr)) ? EOF : *icl++; }void pc(char c) { if (oc - o == ion) fwrite(o, 1, ion, stdout), oc = o; *oc++ = c; }void rd(auto &x) { char c; int f = 1; x = 0; while (c = gc(), c < '0' || c > '9') if (c == '-') f = -1; while ('0' <= c && c <= '9') x = (x << 1) + (x << 3) + (c ^ 48), c = gc(); x *= f; }void pr(auto x) { int a[64], p = 0; if (x < 0) x = -x, pc('-'); do a[p++] = x % 10; while (x /= 10); while (p--) pc(a[p] + '0'); }IO& operator>>(char &c) { return c = gc(), *this; }IO& operator<<(char c) { return pc(c), *this; }IO& operator<<(const char *c) { while (*c) pc(*c++); return *this; }IO& operator>>(auto &x) { return rd(x), *this; }81 行未改动#define ion bw(20)char i[ion], o[ion], *icl = i, *icr = i, *oc = o;char gc() { return (icl == icr && (icr = (icl = i) + fread(i, 1, ion, stdin), icl == icr)) ? EOF : *icl++; }void pc(char c) { if (oc - o == ion) fwrite(o, 1, ion, stdout), oc = o; *oc++ = c; }void rd(auto &x) { char c; int f = 1; x = 0; while (c = gc(), c < '0' || c > '9') if (c == '-') f = -1; while ('0' <= c && c <= '9') x = (x << 1) + (x << 3) + (c ^ 48), c = gc(); x *= f; }void pr(auto x) { int a[64], p = 0; if (x < 0) x = -x, pc('-'); do a[p++] = x % 10; while (x /= 10); while (p--) pc(a[p] + '0'); }IO& operator>>(char &c) { return c = gc(), *this; }IO& operator<<(char c) { return pc(c), *this; }IO& operator<<(const char *c) { while (*c) pc(*c++); return *this; }IO& operator>>(auto &x) { return rd(x), *this; }67 行未改动46 行未改动4748495051525354555681 行未改动13813914014114214314414514614767 行未改动46 行未改动#define ion bw(20)char i[ion], o[ion], *icl = i, *icr = i, *oc = o;char gc() { return (icl == icr && (icr = (icl = i) + fread(i, 1, ion, stdin), icl == icr)) ? EOF : *icl++; }void pc(char c) { if (oc - o == ion) fwrite(o, 1, ion, stdout), oc = o; *oc++ = c; }void rd(auto &x) { char c; int f = 1; x = 0; while (c = gc(), c < '0' || c > '9') if (c == '-') f = -1; while ('0' <= c && c <= '9') x = (x << 1) + (x << 3) + (c ^ 48), c = gc(); x *= f; }void pr(auto x) { int a[64], p = 0; if (x < 0) x = -x, pc('-'); do a[p++] = x % 10; while (x /= 10); while (p--) pc(a[p] + '0'); }IO& operator>>(char &c) { return c = gc(), *this; }IO& operator<<(char c) { return pc(c), *this; }IO& operator<<(const char *c) { while (*c) pc(*c++); return *this; }IO& operator>>(auto &x) { return rd(x), *this; }81 行未改动#define ion bw(20)char i[ion], o[ion], *icl = i, *icr = i, *oc = o;char gc() { return (icl == icr && (icr = (icl = i) + fread(i, 1, ion, stdin), icl == icr)) ? EOF : *icl++; }void pc(char c) { if (oc - o == ion) fwrite(o, 1, ion, stdout), oc = o; *oc++ = c; }void rd(auto &x) { char c; int f = 1; x = 0; while (c = gc(), c < '0' || c > '9') if (c == '-') f = -1; while ('0' <= c && c <= '9') x = (x << 1) + (x << 3) + (c ^ 48), c = gc(); x *= f; }void pr(auto x) { int a[64], p = 0; if (x < 0) x = -x, pc('-'); do a[p++] = x % 10; while (x /= 10); while (p--) pc(a[p] + '0'); }IO& operator>>(char &c) { return c = gc(), *this; }IO& operator<<(char c) { return pc(c), *this; }IO& operator<<(const char *c) { while (*c) pc(*c++); return *this; }IO& operator>>(auto &x) { return rd(x), *this; }67 行未改动