Please read the new rule regarding the restriction on the use of AI tools. ×

tttttt

Revision ru1, by lyohich9, 2016-11-30 12:00:19

define _CRT_SECURE_NO_DEPRECATE

include

using namespace std;

int main() { freopen("out.txt", "wt", stdout); freopen("in.txt", "rt", stdin); int n, d, b, l; l = 0; d = 0; b = 0; int A[100][100]; cin >> 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++) {
    for (int j = 0; j < n; j++) {
       for (int k = 0; k < n; k++) {
         d = d + A[i][k];
       }
       for (int g = 0; g < n; g++) {
         b = b + A[g][j];
       }
       if (d<b) {
         cout << A[i][j];
         l++;
       }
       d = 0;
       b = 0;
    }
}
if (l == 0)
    cout << 0;
return 0;

}

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru1 Russian lyohich9 2016-11-30 12:00:19 671 Первая редакция (опубликовано)