Election 2
ABC 366Problem 50 of 50
EasyWhat to do
In an election with `n` total voters, Takahashi has `t` votes and Aoki has `a` votes so far. Determine if the winner is already certain — meaning even if all remaining votes (n - t - a) go to the losing candidate, they still can't catch up. Return 'Yes' if decided, 'No' otherwise.
Key Concepts
if-statements
basic math
input handling
conditional logic
Examples
Input:
n = 7, t = 4, a = 2
Output:
Yes
Input:
n = 99, t = 12, a = 48
Output:
No
Tips for Beginners
- Focus on understanding the logic, not memorizing syntax
- Use print statements to debug your code
- Don't worry about input parsing - the function handles that for you
- If stuck, try writing out your solution on paper first
Python Editor
Loading Python...