알고리즘

[알고리즘] 백준 19698 - 헛간 청약 (C++)

blueberrysoda 2024. 10. 24. 23:51

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

#include <iostream>
using namespace std;

int main(){
    int N, W, H, L;
    cin >> N >> W >> H >> L;

    cout << min(N, (W / L) * (H / L)) << "\n";
    return 0;
}