Type: RemoteJudge 1000ms 256MiB

练6.2 兴趣小组

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

育才小学四年级二班共有nn人,其中参加语文兴趣小组的有aa个人,参加数学兴趣小组的有bb个人,两者都参加的有cc个人,那么有多少人两个小组都没有参加?

输入格式

在一行输入正整数nn (0<n100000 < n ≤ 10000)、 aabbcc (a,b,cna,b,c ≤ nc<min(a,b)c < min(a,b))。

输出格式

输出有多少人两个兴趣小组都没有参加。

样例

46 21 18 9
16

初一3基础班第四周作业

Not Claimed
Status
Done
Problem
10
Open Since
2023-9-18 15:30
Deadline
2023-10-7 16:00
Extension
0 hour(s)