CF1208C 中,我提交了这样的一份代码:
#include<bits/stdc++.h>
using namespace std;
int n,idx,ans[1010][1010];
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>n;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=n;j++)cout<<idx++<<' ';
cout<<'\n';
}
return 0;
}
WA on test 3 过后,我发现 test 3 输入是 1000 但经过本地验证,我的输出是正确的。
顺手膜拜大佬
