#1795. C++-循环while-模拟鞭炮
C++-循环while-模拟鞭炮
Background
Description
甲乙丙三个放鞭炮,甲每隔5秒放一响,乙每隔7秒放一响,丙每隔10秒放一响,三个同时放了第1只鞭炮。每人各放21响,你能听到几响?
Format
Input
Output
Samples
48
Limitation
1s, 1024KiB for each test case.
甲乙丙三个放鞭炮,甲每隔5秒放一响,乙每隔7秒放一响,丙每隔10秒放一响,三个同时放了第1只鞭炮。每人各放21响,你能听到几响?
48
1s, 1024KiB for each test case.
By signing up a PaiBlockly编程创客平台图形模块编程软件系统 universal account, you can submit code and join discussions in all online judging services provided by us.