Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
7209 | A班-许锘林 | 芯片测试 | C++ | 通过 | 100 | 1 MS | 268 KB | 384 | 2025-03-15 14:21:34 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a[n][n]; for(int i = 0;i < n;i++) { for(int j = 0;j < n;j++) { cin>>a[i][j]; } } for(int i = 0;i < n;i++) { int temp = 0; for(int j = 0;j < n;j++) { if(a[j][i]) { temp++; } } if(temp > n / 2) { cout<<i + 1<<" "; } } return 0; }