版本比较
题解 P5101 【[JOI 2017 Final]绳】
正文
增加 4 行删除 4 行
63 行未改动6465666768686970717273737475767776 行未改动15415515615715815815916016116212 行未改动17517617717817917918018118263 行未改动
template <class T>inline void read(T &res){ char ch; char ch; while (ch = nxtChar(), !isdigit(ch)); res = ch ^ 48; while (ch = nxtChar(), isdigit(ch)) res = res * 10 + ch - 48;} }
char fwt[S], *ohead = fwt;const char *otail = ohead + S;
76 行未改动 { read(col[i]); v[col[i]].push_back(i); ++cnt[col[i]]; } } for (int i = 1; i <= m; ++i) CkMax(mx, cnt[i]), ++apr[cnt[i]]; for (int i = 1; i <= n; i += 2) if (i < n)12 行未改动
for (int i = 1; i <= m; ++i) put(ans[i]), outChar('\n'); fwrite(fwt, 1, ohead - fwt, stdout); return 0; return 0;}
```