Handshake Problem
Computer Mathematics
Easy
3 views
Problem Description
If there are n people and everyone shakes hands once, how many handshakes?
Input Format
One integer n.
Output Format
One integer.
Official Solution
It is C(n,2)=n*(n-1)/2.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!