车水马龙
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.
题目描述:
街上的车种类很多,按轮子分类分成两个轮的,比如自行车和电动车,三个轮的三轮车,四个轮的轿车。
高桥君在路口等绿灯的时候,数了数经过的车有共有n辆,轮子一共有m个,但是数的时候有可能记错了,请你写一个程序判断高桥数的情况是否可能。
输入格式:
一行两个整数n,m
输出格式:
如果可能,输出任意一种方案,按照两轮子车数目、三轮车数目、四轮车数目的顺序输出
如果没有任何一种方案,输出-1 -1 -1
样例:
7 23
1 3 3
10 41
-1 -1 -1
提示
30%的数据,
60%的数据,
100%的数据,
20250308蒙青创CSP-J模拟
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2025-3-8 8:30
- End at
- 2025-3-8 11:30
- Duration
- 3 hour(s)
- Host
- Partic.
- 38