Set Union Size
Computer Mathematics
Easy
2 views
Problem Description
Given sizes |A|,|B| and |A∩B|, compute |A∪B|.
Input Format
Three integers a b inter.
Output Format
One integer.
Constraints
All non-negative
Official Solution
Use formula |A∪B| = a + b - inter.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!