版本比较
CF1804G Flow Control
正文
增加 8 行删除 8 行
17 行未改动1819202122222324252611 行未改动3839404142424344454613 行未改动606162636464656667684 行未改动737475767777787980819 行未改动9192939495959697989920 行未改动120121122123124124125126127128129130130131132133134135136136137138139140175 行未改动全部展开17 行未改动// Contest: Codeforces - Nebius Welcome Round (Div. 1 + Div. 2)// URL: https://codeforces.com/problemset/problem/1804/G// Memory Limit: 512 MB// Time Limit: 6000 ms// //// Powered by CP Editor (https://cpeditor.org)
#include <bits/stdc++.h>#define pb emplace_back11 行未改动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)) {4 行未改动 c = gc(); } 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(); }20 行未改动 while (tp != stk) { pc((*--tp) | 48); } }
inline void write(const char *s) { for (int i = 0; s[i]; ++i) { pc(s[i]); } }
template<typename T> inline void writesp(T x) { write(x); pc(' '); }
template<typename T> inline void writeln(T x) { write(x); pc('\n');175 行未改动全部展开