Online Judge
Toggle navigation
码力同学
Home
Problems
Status
Rating
Group
Contests
Wiki
Signup
Login
Home
Problems
80012 - 鸡兔同笼
80012 - 鸡兔同笼
数学中经典的“鸡兔同笼”问题,已知头共心个,脚共y只,问笼中的鸡和兔各有多少只?
Input
头和脚的数量。
Output
鸡和兔各自数量。一个空格隔开。
Examples
Input
30 90
Output
15 15
Time Limit
1 second
Memory Limit
128 MB
Submit
×
Submit:80012. 鸡兔同笼
Login
Login
Signup
Discuss
Stats
上一题
下一题
×