版本比较
P15992 [PA 2026] 原题加强 2 / Wersja dla profesjonalistów 2
正文
增加 8 行删除 8 行
61 行未改动62636465666768697013 行未改动8485868788899091925 行未改动98991001011021031041051069 行未改动1161171181191201211221231244 行未改动12913013113213313413513613713813914014114214313 行未改动157158159160161162163164165166167168169170171133 行未改动全部展开61 行未改动using pll = pair<ll, ll>;namespace IO {const int maxn = 1 << 20;char ibuf[maxn], *iS, *iT, obuf[maxn], *oS = obuf;inline char gc() {return (iS == iT ? iT = (iS = ibuf) + fread(ibuf, 1, maxn, stdin), (iS == iT ? EOF : *iS++) : *iS++);13 行未改动c = gc();}return f ? ~(x - 1) : x;}inline int reads(char *s) {char c = gc();int len = 0;while (isspace(c)) {5 行未改动}s[len] = '\0';return len;}inline string reads() {char c = gc();string s;while (isspace(c)) {9 行未改动inline void flush() {fwrite(obuf, 1, oS - obuf, stdout);oS = obuf;}struct Flusher {~Flusher() {flush();}4 行未改动flush();}*oS++ = ch;}inline void write(char *s) {for (int i = 0; s[i]; ++i) {pc(s[i]);}}inline void write(const char *s) {for (int i = 0; s[i]; ++i) {pc(s[i]);}13 行未改动while (tp != stk) {pc((*--tp) | 48);}}template<typename T>inline void writesp(T x) {write(x);pc(' ');}template<typename T>inline void writeln(T x) {write(x);pc('\n');133 行未改动全部展开61 行未改动62636465666768697013 行未改动8485868788899091925 行未改动98991001011021031041051069 行未改动1161171181191201211221231244 行未改动12913013113213313413513613713813914014114214313 行未改动157158159160161162163164165166167168169170171133 行未改动全部展开61 行未改动using pll = pair<ll, ll>;namespace IO {const int maxn = 1 << 20;char ibuf[maxn], *iS, *iT, obuf[maxn], *oS = obuf;inline char gc() {return (iS == iT ? iT = (iS = ibuf) + fread(ibuf, 1, maxn, stdin), (iS == iT ? EOF : *iS++) : *iS++);13 行未改动c = gc();}return f ? ~(x - 1) : x;}inline int reads(char *s) {char c = gc();int len = 0;while (isspace(c)) {5 行未改动}s[len] = '\0';return len;}inline string reads() {char c = gc();string s;while (isspace(c)) {9 行未改动inline void flush() {fwrite(obuf, 1, oS - obuf, stdout);oS = obuf;}struct Flusher {~Flusher() {flush();}4 行未改动flush();}*oS++ = ch;}inline void write(char *s) {for (int i = 0; s[i]; ++i) {pc(s[i]);}}inline void write(const char *s) {for (int i = 0; s[i]; ++i) {pc(s[i]);}13 行未改动while (tp != stk) {pc((*--tp) | 48);}}template<typename T>inline void writesp(T x) {write(x);pc(' ');}template<typename T>inline void writeln(T x) {write(x);pc('\n');133 行未改动全部展开