C++-循环嵌套-百钱百鸡问题:用100块钱买刚好100只鸡,问有多少种购买方案,分别买几只?
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.
Background
Description
百钱百鸡问题:公鸡一只5块钱,母鸡一只3块钱,小鸡3只1块钱,用100块钱买刚好100只鸡,问有多少种购买方案,分别买几只?
Format
Input
Output
Samples
0 25 75
4 18 78
8 11 81
12 4 84
Limitation
1s, 1024KiB for each test case.
C++基础知识02(循环-for和while及嵌套)
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 18
- Start at
- 2024-5-5 0:00
- End at
- 2024-5-25 20:00
- Duration
- 500 hour(s)
- Host
- Partic.
- 28