鸡兔同笼
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.
题目描述
数学中经典的“鸡兔同笼”问题,已知头共x个,脚共y只,问笼中的兔和鸡各有多少只?
输入
头和脚的数量。
输出
兔和鸡各自数量。一个空格隔开。
输入输出样例
输入 #1
30 90
输出 #1
15 15
顺序结构小测
- Status
- Done
- Rule
- IOI
- Problem
- 5
- Start at
- 2025-1-19 16:00
- End at
- 2025-1-19 18:00
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 74