← All problemsSign in

Back to Asgard

Thor is unhappy that his hammer Mjolnir got destroyed. However, he now travels back in time to Asgard with the help of the time machine which was created by his friends. In Asgard, he is given the following problem to solve. Given four integers $a$ , $b$, $c$, $d$ , check whether they form a rectangle Thor will get back his hammer if he solves it. Can you help him? ###Input: The first line 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start