TOPIC

PROBLEM 2168 - URI Fórum 1.0

URI Online Judge asked 4 years ago

URI Online Judge Fórum 1.0

MOD

This topic was solved and cannot recieve new replies.

  • Unknown replied 4 years ago

    There are many and more dissimilar types of home security cameras. There are security cameras which can be placed inside at the home, for monitor to doors, windows as well as dissimilar rooms. There are outdoor security cameras which can be used to monitor to the perimeter of your property, major door areas, as well as garages. They can be stationary, passive units, and they can be active, moving on a pivot systems as well as be activated in the time of sensing to motion. They can be installed in combination with security lighting, but the infrared cameras, that pick up to thermal images, and night vision products to choose from. Thanks& regards, Lindsey nicole security cameras toronto | security cameras vancouver

  • Claudiano Sampaio replied 4 years ago

    Pessoal alguem poderia me ajudar, estou recebendo run time, e não sei onde está o erro.

    include include define MAX 100

    using namespace std;

    char isSeguro(int x, int y, int mat[][MAX]){ char seguro = 'U'; int cont = 0; for(int i = x; i <= x+1; i++){ for(int j = y; j <= y+1; j++){ if(mat[i][j] == 1) cont++; } } if(cont > 1) seguro = 'S'; return seguro; }

    int main(int argc, char *argv[]) { int n; cin >> n; int tamanhoMatriz = n+1; int mat[MAX][MAX];

    for(int i = 0; i < tamanhoMatriz; i++){
        for(int j = 0; j < tamanhoMatriz; j++){
            scanf("%d",&mat[i][j]);
        }
    }
    
    for(int i = 0; i < n; i++)
    {
        for(int j = 0; j < n; j++)
        {
            cout << isSeguro(i, j, mat);
        }
        cout << endl;
    }
    return 0;

    }

  • Luyza Ellen replied 4 years ago

    Alguém poderia me explicar como fazer pra descobrir o que são essas "esquinas " para serem analisadas? Não entendi muito bem o problema.

  • 🧙The Install Wizard 🧙 replied 4 years ago

    Procure colocar o código entre as tags code para facilitar visualização.

    Seu programa nao funciona para casos onde não há nenhuma camera vigiando uma quadra.

    Exemplo:

    2 0 0 0 0 0 0 0 0 0

  • Unknown replied 4 years ago

    Estou recebendo 10% de WA, alguém me ajuda?