提交时间:2024-01-21 15:25:54

运行 ID: 121130

#include<bits/stdc++.h> using namespace std; int n,a,b; int sb[110][110]; int sd[100010]; signed main(){ cin>>n>>a>>b; for(int i = 1;i <= n;i++){ for(int j = 1;j <= n;j++){ cin >> sb[i][j]; if(sb[i][j] == 1){ if(j == b){ cout << "1"; return 0; } } } } return 0; }