よじろめ覚書

私の理解度重視のソースコードです。

ABC106A - Garden

問題:A - Garden

#include <iostream>
using namespace std;

int main(void) {
    int a, b;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> a >> b;

    cout << (a - 1) * (b - 1) << "\n";
    return 0;
}