正文
增加 4 行删除 4 行
63 行未改动646566676869707172737475767776 行未改动15415515615715815916016116212 行未改动17517617717817918018118263 行未改动template <class T>inline void read(T &res){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;}```63 行未改动646566676869707172737475767776 行未改动15415515615715815916016116212 行未改动17517617717817918018118263 行未改动template <class T>inline void read(T &res){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;}```