坤兔同笼
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.
背景
从前有两种四脚兽:坤坤,兔兔 坤坤因为喜欢打篮球,两年半后坤坤的一只鸡脚退化了, 坤坤只剩下3只脚
描述
给定坤坤和兔兔的头的数量x和脚的数量y。
输出坤坤的数量和兔兔的数量
输入
第一行一个整数x, .代表坤坤和兔兔的总头数
第一行一个整数y, .代表坤坤和兔兔的总脚数
输出
输出两个整数, 代表最多有几只坤坤和兔兔.
样例
2
7
1 1
test
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 2
- Start at
- 2023-11-7 10:00
- End at
- 2023-11-7 12:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 1