版本比较
P15992 [PA 2026] 原题加强 2 / Wersja dla profesjonalistów 2
正文
增加 8 行删除 8 行
61 行未改动6263646566666768697013 行未改动848586878888899091925 行未改动98991001011021021031041051069 行未改动1161171181191201201211221231244 行未改动12913013113213313313413513613713813913914014114214313 行未改动157158159160161161162163164165166167167168169170171133 行未改动全部展开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 行未改动全部展开