鼓掌
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.
题目描述
运动会上,两个班级在为场上的运动员鼓掌加油。其中 A 班的同学每 x 秒
钟鼓掌一次,B 班的同学每 y 秒钟鼓掌一次,每次鼓掌都持续 1 秒钟。这样的话,
在 n 秒钟之内,共有多少秒的时间有掌声?
x=2,y=3,n=10 的情况如下:

输入输出说明
输入输出说明
输入文件 clap.in
一行,三个正整数 x,y,n。
输出说明
输出文件 clap.out
一行,一个整数,表示有掌声的时间总长度。
题目样例
样例输入
2 3 10
样例输出
7
数据说明
- 对于 50%的数据: ;
- 对于 100%的数据:。
小孩头保卫战之神秘的假期
- Status
- Done
- Rule
- XCPC
- Problem
- 11
- Start at
- 2025-6-18 10:00
- End at
- 2025-6-22 14:00
- Duration
- 100 hour(s)
- Host
- Partic.
- 37