Type: Default 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.

说明

幼儿园小朋友昨天捡到3块小石头,想再去捡一块小石头,让这44块石头正好一共重2020斤,请问他应该去捡一块多少斤的石头?

输入格式

三个整数 aa,bb,cc,是这三块石头的重量(斤)。(0<a,b,c,a+b+c200 < a, b, c, a+b+c≤20)

输出格式

一个整数,是第四块石头的重量(斤)。

样例

3 5 7
5

李泽霖刷题训练(小白专作)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
11
Start at
2024-12-7 18:30
End at
2024-12-10 2:30
Duration
56 hour(s)
Host
Partic.
2