알고리즘

[알고리즘] 백준 25628 - 햄버거 만들기 (C++)

blueberrysoda 2024. 12. 1. 23:21

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

#include <iostream>
using namespace std;

int A, B;

int main(){
    cin >> A >> B;
    cout << min(A / 2, B) << "\n";
    return 0;
}