| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 142419 | 周震东 | 人际关系 | C++ | Wrong Answer | 30 | 1 MS | 328 KB | 390 | 2024-04-07 22:10:23 |
#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; }