1899: 蜘蛛蜻蜓蝉

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:54 Solved:1

Description

有蜘蛛、蜻蜓和蝉三种动物共 21 只,共 140 条腿和 23 对翅膀,三种动物各多少只?

Input

Output

一行三个整数,用空格隔开,表示蜘蛛、蜻蜓和蝉三种动物的只数。

Sample Input Copy

Sample Output Copy

HINT

如果你用三重循环,那你只是一般。

如果你用两重循环,那你就是优秀。

如果只用一层循环,那你就是高手。

课外知识:

蜘蛛是节肢动物,有 8 条腿(螯肢 1 对、须肢 1 对、步足 4 对)。

蜻蜓是昆虫,有 6 条腿、2 对翅膀。

蝉是昆虫,有 6 条腿、1 对翅膀。

百度知道:http://zhidao.baidu.com/question/46019168.html

百度知道:http://zhidao.baidu.com/question/623524154434483844.html

Source/Category