Untitled
unknown
plain_text
10 months ago
497 B
6
Indexable
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
int arr[n][3];
int count = 0;
int c = 0;
for(int i = 0;i<n;i++)//ekhane tui index 1 theke n porjonto jaccis kintu array er index kokhhono n hoi?naki 0 theke n-1 porjonto hoi
{
for(int j = 0;j<3;j++)
{
scanf("%d",&arr[i][j]);
}
}
for(int i = 0;i<n;i++)
{
c = 0;
for(int j = 0;j<3;j++)
{
c = c+arr[i][j];
}
if(c>=2)count++;
}
printf("%d\n",count);
}Editor is loading...
Leave a Comment