[백준] 19698번 : 헛간 청약 - C++

강재원·2022년 9월 16일
0

[코딩테스트] C/C++

목록 보기
40/200



https://www.acmicpc.net/problem/19698

#include <iostream>

using namespace std;

int main() {
    int n,w,h,l;
    cin>>n>>w>>h>>l;
    w/=l;
    h/=l;
    int sum=w*h;
    if(n>=sum) cout<<sum;
    else cout<<n;
}
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글