求大佬们看看哪里错了

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main()
{
int a[10000],i,j,k,n,t=0,t1=0;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
for(j=0;j<n;j++)
if(i!=j)
{
for(k=0;k<n;k++)
if(k!=i&&k!=j)
{
if(k==i+j)
t1++;
}
}
printf("%d",t1);

return 0;
}

0 条评论

目前还没有评论...

信息

ID
1911
难度
6
分类
(无)
标签
递交数
16923
已通过
4475
通过率
26%
被复制
26
上传者