第二题
#include<iostream>
using namespace std;
int main()
{
int m,n;
cin >> m >> n;
cout << m + m + n + n<< " " << m * n;
return 0;
}
第一题
#include<iostream>
using namespace std;
int main()
{
int m,n;
cin >> m >> n;
cout << m + m + n + n<< " " << m * n;
return 0;
}