Problem1903--第9课 植树造林——动动脑??第2题/P031

1903: 第9课 植树造林——动动脑??第2题/P031

[Creator : dinan]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

请翻开书《小学生C++趣味编程》上册中第31页,亲自编写一下动动脑中的第二题,阅读程序写结果。

Input

Output

一行表示,结果。

Sample Input Copy

10 1 1 1

Sample Output Copy

ans=7

Source/Category

Please give us a Star @HUSTOJ Github!

欢迎关注微信公众号onlinejudge