ABC400 Party
ABC 400Problem 16 of 50
EasyWhat to do
400 people need to sit in a rectangle with `a` rows. Calculate how many columns `b` are needed so that a × b = 400. If 400 is not divisible by a, return -1.
Key Concepts
basic math
if-statements
input/output
division
Examples
Input:
a = 10
Output:
40
Input:
a = 11
Output:
-1
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...