Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //6-4-16
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- #include <clocale>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "ru");
- int n,a,b,cnt;
- cin >> n >> a >> b;
- if (a > b)
- swap(a, b);
- int** arr1 = new int*[n];
- int* arr2 = new int[n];
- for (int i = 0; i < n; i++)
- arr1[i] = new int[n];
- for (int i = 0; i < n; i++)
- for (int j = 0; j < n; j++)
- cin >> arr1[i][j];
- for (int i = 0; i < n; i++)
- {
- cnt = 0;
- for (int j = 0; j < n; j++)
- if (a >= arr1[i][j] || b <= arr1[i][j])
- cnt++;
- arr2[i] = cnt;
- }
- for (int i = 0; i < n; i++)
- cout << arr2[i] << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement