first commit

This commit is contained in:
Nyagami
2022-12-15 23:51:04 +07:00
commit 87d51fb251
292 changed files with 12623 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package nyagami;
import java.util.Scanner;
public class test{
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int res = 0;
for(int i=1; i<=n; i++){
int cnt = 0;
for(int j=1; j<=3; j++) cnt+=sc.nextInt();
if(cnt > 3-cnt) res++;
}
System.out.print(res);
sc.close();
}
}