Chef and Handshakes
CodeChefOpen on judge ↗
At the annual meeting of Board of Directors of Byte Land Municipal Corporation, every one starts shaking hands with everyone else in the room. Given the fact that any two persons shake hand exactly once, Can you Help our Chef to find the total count of handshakes? Input The first line contains the number of test cases T, T lines follow. Each line then contains an integer N, the total number 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