不吹,这题数据真的有问题

P2397 yyy loves Maths VI (mode)

https://www.luogu.org/discuss/show?postid=31911 上一位提出这个问题的人被cz用1000AC和Rank2快读水过去了
by WorldBest丶牛顿 @ 2018-08-07 01:34:46


@[WorldBest丶牛顿](/space/show?uid=53164) 事实证明,本题数据没有任何问题。我开小号测试了一下,把所有第二行输入全都存进 vector,最后 `assert(a.size() == n);`,并没有发生 RE。 ```cpp https://www.luogu.org/record/show?rid=9388339 #include <cassert> #include <vector> #include <iostream> int main() { int n; std::cin >> n;    std::vector<bool> a; // 防止炸内存    for (int i = 0; i < n; ++i) { int tmp; std::cin >> tmp; a.push_back(tmp); } assert(a.size() == n); } ```
by Anguei @ 2018-08-07 02:57:33


@[yyfcpp](/space/show?uid=53062) 可是如果你在洛咕ide里跑一边,即使少了数据也不会re啊。。 我也去弄个小号(逃
by WorldBest丶牛顿 @ 2018-08-07 08:08:56


@[kkksc03](/space/show?uid=1) @[lin_toto](/space/show?uid=256)
by WorldBest丶牛顿 @ 2018-08-07 08:32:07


@[WorldBest丶牛顿](/space/show?uid=53164) 提供无用证据- -. 测试发现最后2个点可能少了1个数.
by BFSBFSBFSBFS @ 2018-08-07 08:52:38


@[BFSBFSBFSBFS](/space/show?uid=20454) 怎么提供啊。。
by WorldBest丶牛顿 @ 2018-08-07 09:01:55


@[WorldBest丶牛顿](/space/show?uid=53164) 你把n--试试.?
by BFSBFSBFSBFS @ 2018-08-07 09:02:26


@[BFSBFSBFSBFS](/space/show?uid=20454) 人家n>>4快读就过去了 或者快读里面皮判断eof(快读里面判断eof就不会T了
by WorldBest丶牛顿 @ 2018-08-07 09:05:21


@[WorldBest丶牛顿](/space/show?uid=53164) emm估计众数在前面.所以并没有什么影响... 所以我说这是无用的证据- -. 只能说明少了1个数...
by BFSBFSBFSBFS @ 2018-08-07 09:07:28


@[BFSBFSBFSBFS](/space/show?uid=20454) n--真的能过。。 能发现少几个数也是运气好。。
by WorldBest丶牛顿 @ 2018-08-07 09:09:36


| 下一页