#include int main() { int N,K,l,i,j,count; printf("Nの値を入力:"); scanf("%d",&N); printf("Kの値を入力:"); scanf("%d",&K); count=0; int A[N],S[N][N]; for(l=0;l<=N;l++){ printf("%d番目の値を入力:",l); scanf("%d",&A[l]); } for(i=0;i<=N;i++){ for(j=0;j<=N;j++){ printf("S[%d][%d]=%d\n",i,j,(A[i]*A[j])%2); if(S[i][j]>=K){ count=count+1; } } } printf("%d\n",count); return 0; }