数据范围还是有误?
查看原帖
数据范围还是有误?
379058
Ginger_he楼主2022/10/28 14:32
#include<bits/stdc++.h>
using namespace std;
#define N 100005
int n,k,x;
int main()
{
	scanf("%d%d",&n,&k);
	for(int i=1;i<=n;i++)
	{
		scanf("%d",&x);
		if(!x)
			while(1);
	}
	return 0;
}

题目保证 1ai1051\le a_i\le10^5,但是上面的代码 TLE 了,说明 aia_i 可能为 00

2022/10/28 14:32
加载中...