Help me in solving INSTNOODLE problem

My issue

how we are applying constraints in this question?

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int x,y;
	cin>>x>>y;
    int multiply;
    multiply=x*y;
	cout<<multiply;
	return 0;
}

Learning course: Practice C++
Problem Link: CodeChef: Practical coding for everyone

@vanshaggrawal1

In this problem, the answer can be found be simple multiplication and the constraint range is well under int limit so there seems to be no particular need to apply special conditions for constraints in my opinion.

#include <iostream>
using namespace std;

int main() {
	int x,y;
	cin>>x>>y;
	cout<<x*y<<endl;
	return 0;
}

follow this code
include
using namespace std;

int main() {
// your code goes here
int x;
int y;
cin >> x >> y;
if((x >= 1 && x <= 1000) && (y >= 1 && y <= 1000) ){
cout << x * y;
}
return 0;
}