Welcome To SDIBT ACM-ICPC Online Judge

VIRTUAL JUDGE Recent Contest F.A.Qs Forum Home ProblemSet Status Ranklist Contest LoginRegister Exam
Problem 3663. -- (c6循环) (必做) 百钱买百鸡

(c6循环) (必做) 百钱买百鸡

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 2243  Solved: 1138
[Submit][Status][Forum]

Description

 百钱买百鸡:

一只公积5块钱,一只母鸡3块钱,一只小鸡1/3块钱,问100元买100只鸡如何买?

Input

 无输入

Output

 输出公鸡数、母鸡数、小鸡数

要输出所有的情况

Sample Input

无输入

Sample Output

0 25 75
4 18 78
8 11 81
12 4 84

HINT

Source

[Submit][Status][Forum]

HOME Back

한국어 中文 English
All Copyright Reserved 2008-2010 SDIBT TEAM
GPL2.0 2003-2010 HUSTOJ Project TEAM
Anything about the Problems, Please Contact Admin:admin