cin函数会RE了?
  • 板块灌水区
  • 楼主xlpri
  • 当前回复4
  • 已保存回复4
  • 发布时间2024/7/9 23:38
  • 上次更新2024/7/10 09:31:41
查看原帖
cin函数会RE了?
766015
xlpri楼主2024/7/9 23:38

RT,RE后使用cout排错法确定RE行为第10行

#include <bits/stdc++.h>

using namespace std;

int n,m,ansl,ansr,L = 0,R = 0;
int h[2007],p[10007];

int main()
{
    cin >> n >> m;
    for(int i = 0;i < n;i++) cin >> p[i];
    int num = 0;

(以下省略)

输入数据均不超过30,cin改成scanf也RE,缩短数组长度还RE

2024/7/9 23:38
加载中...