Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int l, c;
- int t1, t2;
- cin >> l >> c;
- t1 = l*c + (l-1)*(c-1);
- t2 = 2*(l-1) + 2*(c-1);
- cout << t1 << endl;
- cout << t2 << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement