시도 횟수: 1회

해결한 시간: 01:33

핵심 아이디어

<aside> 💡

$max(0, h-b)$

</aside>

코드

#include <bits/stdc++.h>
#define FASTIO ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
using namespace std;
typedef long long ll;

int h, b;

int main()
{
    FASTIO;
    cin >> h >> b;
    if(h>b) cout << h-b;
    else cout << 0;
    return 0;
}

복기