版本比较
CF1804G Flow Control
正文
增加 8 行删除 8 行
17 行未改动18192021222324252611 行未改动38394041424344454613 行未改动6061626364656667684 行未改动7374757677787980819 行未改动91929394959697989920 行未改动120121122123124125126127128129130131132133134135136137138139140175 行未改动全部展开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 行未改动全部展开17 行未改动18192021222324252611 行未改动38394041424344454613 行未改动6061626364656667684 行未改动7374757677787980819 行未改动91929394959697989920 行未改动120121122123124125126127128129130131132133134135136137138139140175 行未改动全部展开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 行未改动全部展开