Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- struct ograda {
- int x1, y1, x2, y2;
- };
- struct grupa {
- ograda ogr;
- int ovci = 0;
- int volkovi = 0;
- grupa(ograda &ogr, int ovci=0, int volkovi=0) {
- this->ogr = ogr;
- this->ovci = ovci;
- this->volkovi = volkovi;
- }
- };
- int main() {
- int Y, X; cin >> Y >> X;
- char r[X][Y];
- for (int i = 0; i < Y; ++i) {
- for (int j = 0; j < X; ++j) {
- cin >> r[j][i];
- }
- }
- vector<grupa> grupi;
- {
- ograda _o = {0,0,R-1,K-1};
- grupa _g = grupa(_o, 0, 0);
- grupi.push_back(_g);
- }
- for (int y = 0; y < Y; ++y) {
- int gr_i = 0;
- bool gradiogr = false;
- for (int x = 0; x < X; ++x) {
- char c = r.at(x);
- if (c == '#') {
- if (y+1 < Y && redovi[x][y+1] == '#' && x+1 < X && redovi[x+1][y] == '#') {
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement