Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
142419 周震东 人际关系 C++ 解答错误 30 1 MS 328 KB 390 2024-04-07 22:10:23

Tests(3/10):


#include<bits/stdc++.h> using namespace std; long long a[105][105]; long long n,m,x,y,s = 0,dx[4]= {-1,0,1,0},dy[4]= {0,1,0,-1}; int main() { cin >> n; for(long long i = 1; i <= n; i++) { for(long long j = 1; j <= n; j++) { cin >> a[i][j]; } } cin >> x; for(long long i = 1; i <= n; i++) { if(a[x][i] == 1) { s += 1; } } cout << s; return 0; }


测评信息: