So,where is your code?
by FXLIR @ 2024-03-26 15:40:53
你怎么写的??
by run_away @ 2024-03-26 15:40:59
@[Huzhengzheng0909](/user/1324231) talk is cheap
by XuYueming @ 2024-03-26 15:41:07
@[Huzhengzheng0909](/user/1324231) [您都通过了啊](https://www.luogu.com.cn/record/152764364)
by GPUawa @ 2024-03-26 15:43:40
```cpp
if (scanf("%d", &n) != 1) {
std::cerr << "Failed to read the number of elements." << std::endl;
return 1;
}
x.resize(n);
for (int i = 0; i < n; ++i) {
if (scanf("%d", &x[i]) != 1) {
std::cerr << "Failed to read an element at index " << i << std::endl;
return 1;
}
}
```
这段代码其实不用写的啊
by GPUawa @ 2024-03-26 15:44:34