Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<string>
- using namespace std;
- int main()
- {
- int a, b;
- cin >> a >> b;
- int min;
- if(a < b) {
- min = a;
- }
- else {
- min = b;
- }
- if((min * min) % 2 == 1) {
- min -= 1;
- }
- cout << min * min << endl;
- return 0;
- }
- /*
- 3 16
- I : 16
- II : 16
- III : 16
- 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
- 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
- 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
- **/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement