标签:bsp ++ 测试结果 void new out static tin stat
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] m = new int[n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { m[i][j] = sc.nextInt(); } } for (int j = 0; j < n; j++) { int num = 0; for (int i = 0; i < n; i++) { if (i != j) num += m[i][j]; } if (num >= n / 2) { System.out.print(j + 1 + " "); } } } }
标签:bsp ++ 测试结果 void new out static tin stat
原文地址:https://www.cnblogs.com/shiaguang/p/12377997.html