提交如下代码后:
#include <iostream>
#include <cassert>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
assert(x >= 1 && y >= 1 && z >= 1);
cout << y;
return 0;
}
会得到 https://www.luogu.com.cn/record/193597685 的评测结果。
发现 #23 RE 了,说明数据点里存在 <1 的数,与数据范围中保证的“输入的整数在 [1,109] 内”不符。
如此數據,竟配進題目裏,羞也不羞!