eolymp
bolt
Try our new interface for solving problems
Problems

Perimeter and area

published at 4/3/24, 3:49:30 pm

include <iostream>

using namespace std; int main() { long long a, b; cin >> a >> b; cout << (a + b) * 2 << " " << a * b; }