AAAuc03 @ 2024-06-05 18:35:53
全RE
#include <bits/stdc++.h>
using namespace std;
long long n,q,a[110000][110000],i,j,k,h;
int main()
{
scanf("%lld %lld",&q,&n);
while(n--)
{
scanf("%lld",&h);
if(h==1)
{
scanf("%lld %lld %lld",&i,&j,&k);
a[i][j]=k;
}
else if(h==2)
{
scanf("%lld %lld",&i,&j);
printf("%lld\n",a[i][j]);
}
}
return 0;
}
by AAAuc03 @ 2024-06-05 18:38:16
每个都显示这
Runtime Error.
Received signal 11: Segmentation fault with invalid memory reference.
by AllenJYL @ 2024-06-05 18:44:48
a
开太大了
by Gilbert1206 @ 2024-06-05 19:43:11
a超界了,开到10000以下应该能满足了
100000*100000=10的10次方>10的9次方
求关!!!
by Gilbert1206 @ 2024-06-05 19:44:27
还有Runtime Error是超时的意思
by zcy_jake @ 2024-06-05 20:21:06
@Gilbert1206
Runtime Error 不是运行时错误吗?
by AAAuc03 @ 2024-06-05 21:09:29
#include <bits/stdc++.h>
using namespace std;
int n,q,a[11000][11000];
int main()
{
scanf("%d %d",&q,&n);
while(q--)
{
int i=0,j=0,k=0,h=0;
scanf("%d",&h);
if(h==1)
{
scanf("%d %d %d",&i,&j,&k);
a[i][j]=k;
}
else if(h==2)
{
scanf("%d %d",&i,&j);
printf("%d\n",a[i][j]);
}
}
return 0;
}
我还RE,不过第6个过了
by Gilbert1206 @ 2024-06-05 22:14:20
@zcy_jake
是指时间超过了一秒
by zcy_jake @ 2024-06-06 22:06:31
那是 TLE 好吧?
by Yaoshui_lv @ 2024-08-19 21:55:11
@Gilbert1206 RE应该直译是运行时间错误,TLE是超时