문제
FJ wants to take pictures of his N cows (
Unfortunately, there are K unfriendly pairs of cows (
입력
Line 1: Two space-separated integers, N and K.
Lines
출력
Line 1: A single integer, specifying the minimum number of photos FJ needs to take.
예제1
73
1 3
2 4
5 6
3
Output Details
FJ can take 3 photos:
One ranging from 1 to 2.
One ranging from 3 to 5.
One ranging from 6 to 7.