logo AlgoBeat OnlineJudge
登录 注册

#215201. [UOI 2024 II Stage] Shops

内存限制:512 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Today is Friday. Anton is finally free from school for two days! Anton can go home in two ways:

  • by taking the first path, Anton can visit shops;
  • by taking the second path, Anton can visit shops.

Anton also knows that there are shops that are encountered on both paths (in both places). Anton is curious about how many shops are there in his city in total? Let's assume that there are no more shops in the city except for these shops.

Help him answer this question.

:::align{center}

Above is one of the possible route options in the second example. :::

输入格式

The first line contains three integers , , () --- the number of shops on the first path, the second path, and on both.

输出格式

Print a single integer --- the total number of shops in the city.

样例

样例输入 1

1 2 0

样例输出 1

3

样例输入 2

9 6 3

样例输出 2

12