L. 【例6.3】 套盒子

    Type: RemoteJudge 1000ms 64MiB

【例6.3】 套盒子

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.

说明

小明同学有很多大、中、小三种类型的盒子,分开放太占空间,他想把这些盒子套在一起,那样看起来更加整洁。但是他突然忘记他自己一共有多少个盒子了。他只记得:
一共有 aa 个大盒子,每个大盒子里面有 bb 个中盒子,每个中盒子里面有 cc 个小盒子。
现在他想知道自己一共有多少个盒子。

输入格式

输入仅有一行,三个整数 aabbcc(0a0≤a , bb , c1000c \leq 1000)。

输出格式

输出一行一个整数,代表一共有多少个盒子。

样例

1 1 1
3

2024吉利学院算道蓝桥杯培训

Not Attended
Status
Done
Rule
IOI(Strict)
Problem
55
Start at
2024-11-29 13:30
End at
2024-12-29 13:30
Duration
720 hour(s)
Host
Partic.
30