← All problemsSign in

2 Dimensional Fun

Given N points in a plane, how many squares can you make from these points? Input The first line contains t, the number of test cases (about 10). Then t test cases follow. Each test case has the following form: - The first line contains an integer N, the number of points in the given set (4 ≤ N ≤ 555). - Then N lines follow, each line contains two integers X, Y describing coordinates of a poi

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