Set Union Size

Computer Mathematics Easy 2 views
Back to Questions

Problem Description

Given sizes |A|,|B| and |A∩B|, compute |A∪B|.

Input Format

Three integers a b inter.

Output Format

One integer.

Sample Test Case

Input:
5 7 2
Output:
10

Constraints

All non-negative

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next