알고리즘

[알고리즘] 백준 28444 - HI-ARC=? (C++)

blueberrysoda 2024. 11. 30. 23:53

[문제 링크] : https://www.acmicpc.net/problem/28444

#include <iostream>
using namespace std;

int main(){
    int H, I, A, R, C;
    cin >> H >> I >> A >> R >> C;
    cout << H * I - A * R * C << "\n";
    return 0;
}