#include <iostream>
using namespace std;
typedef long long ll;
int main()
{
ll a, b, c, s, v;
cin >> a >> b >> c;
s = 2 * (a * b + b * c + c * a);
v = a * b * c;
cout << s << ' ' << v;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
typedef long long ll;
int main()
{
ll a, b, c, s, v;
cin >> a >> b >> c;
s = 2 * (a * b + b * c + c * a);
v = a * b * c;
cout << s << ' ' << v;
}