D - All about Rectangles!
CodeChefOpen on judge ↗
A rectangle with positive integer side length has area $X$ $cm^2$ and perimeter $Y$ $cm$. You're given the value of $X + Y$. Determine if a rectangle with positive area and positive integer side length is possible for this value. ### Input: - The first line contains $T$, denoting the number of testcases. - The first and only line of each test case contains a integer denoting the value of $
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start