TOPIC

30% wrong answer! What's wrong / Qual o erro?

Renato Moran asked 2 years ago

include

using namespace std;

int main() { int X = 0; int Y = 0; int M = 0; int X1 = 0; int X2 = 0;

while( cin >> X >> Y >> M ){

    while( M-- ){

    cin >> X1 >> X2;

        if( X1 * X2 <= X * Y ){
            cout << "Sim" << endl;
        }else{
            cout << "Nao" << endl;
        }

    }

}

return 0;

}

Remember not post solutions. Your post may be reviewed by our moderators.

  • João Gustavo Rogel replied 1 year ago

    Calcular a área não resolve o problema, pense nas dimensões x e y