알고리즘

[알고리즘] 백준 18301 - Rats

blueberrysoda 2024. 8. 10. 23:57
#include <iostream>
using namespace std;

int main(){
    int A, B, C;
    cin >> A >> B >> C;
    cout << (A + 1) * (B + 1) / (C + 1) - 1 << "\n";
    return 0;
}