Toggle navigation
CGOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem4517--植树造林
4517: 植树造林
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
Solved: 2
Submit Num: 4
Statistics
ShowOff!
Description
在植树节,三位同学分别种了
lns="http://www.w3.org/1998/Math/MathML">
a
a
棵树、
lns="http://www.w3.org/1998/Math/MathML">
b
b
棵树,
lns="http://www.w3.org/1998/Math/MathML">
c
c
棵树。老师准备补种一些树,使三人种树数量保持一致。请问老师最少需要种几棵树?
Input
三个整数:
lns="http://www.w3.org/1998/Math/MathML">
a
a
,
lns="http://www.w3.org/1998/Math/MathML">
b
b
,
lns="http://www.w3.org/1998/Math/MathML">
c
c
。
0
≤
a
,
b
,
c
≤
1
0
0
0
。
Output
单个整数:表示补种数量。
Sample Input
Copy
2 1 3
Sample Output
Copy
3
Source/Category
分支结构