Equally

ABC 385

Problem 31 of 50

Easy

What to do

Given three integers a, b, c, check if they can be split into two or more groups where each group has the same sum. For example, (3, 8, 5) → 'Yes' because {3,5} and {8} both sum to 8.

Key Concepts

if-statements basic math input/output handling

Examples

Input: a = 3, b = 8, c = 5

Output: Yes

Input: a = 2, b = 2, c = 2

Output: Yes

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...