Shuffled Equation

ABC 392

Problem 24 of 50

Easy

What to do

Given three integers a, b, c, check if any arrangement of them satisfies the equation: one number × another number = the third number. Return 'Yes' if possible, 'No' otherwise. For example, (3, 15, 5) → 'Yes' because 3 × 5 = 15.

Key Concepts

if-statements loops basic math arrays or lists

Examples

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

Output: Yes

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

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