Official

A - 売れ残るフルーツ / Leftover Fruits Editorial by admin

swe-2-high

Each customer buys exactly one fruit, so \(B\) customers buy at most \(B\) fruits in total. If \(A > B\), everyone can buy one and \(A - B \geq 1\) fruits remain. If \(A \leq B\), the stock runs out after \(A\) sales, so nothing is left. Hence the answer is Yes exactly when \(A > B\), which is precisely what the program checks. It only reads two integers and compares them, so both the time complexity and the space complexity (including stored input) are \(O(1)\).