当前位置:网站首页>Luogu p2089 roast chicken
Luogu p2089 roast chicken
2022-07-06 06:24:00 【zjsru_ Beginner】
Title Description
Pig Hanke I like roast chicken very much ( This is the same animal , Fratricidal !)Hanke It's special to eat chicken , Why is it special ? Because he has 10 Ingredients ( mustard 、 Cumin and so on ), Each ingredient can be put 1 To 3 g , The delicious degree of any roasted chicken is the sum of the quality of all ingredients .
Now? , Hanke Want to know , If I give you a delicious degree n, Please export this. 10 All matching schemes of ingredients .
Input format
A positive integer n, Indicates how delicious .
Output format
first line , Total number of programmes .
Line 2 to end ,10 Number , Indicates the quality of each ingredient , In dictionary order .
If there is no satisfactory method , Just output one on the first line 0.
I/o sample
Input 1
11
Output 1
10 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1
jsj201 YY
边栏推荐
- Apple has open source, but what about it?
- Pat (Grade B) 2022 summer exam
- 基于JEECG-BOOT制作“左树右表”交互页面
- (中)苹果有开源,但又怎样呢?
- Data type of MySQL
- Understanding of processes and threads
- E - 食物链
- RestTemplate、Feign实现Token传递
- Simulation volume leetcode [general] 1109 Flight reservation statistics
- Redis 核心技术与实战之 基本架构:一个键值数据库包含什么?
猜你喜欢
随机推荐
模拟卷Leetcode【普通】1447. 最简分数
LeetCode 1200. 最小绝对差
Full link voltage measurement: building three models
leaflet 地图
全链路压测:构建三大模型
JMeter做接口测试,如何提取登录Cookie
php使用redis实现分布式锁
模拟卷Leetcode【普通】1219. 黄金矿工
[wechat applet] build a development tool environment
JWT-JSON WEB TOKEN
Database isolation level
Understanding of processes and threads
Simulation volume leetcode [general] 1143 Longest common subsequence
[postman] collections configuration running process
把el-tree选中的数组转换为数组对象
RestTemplate、Feign实现Token传递
模拟卷Leetcode【普通】1414. 和为 K 的最少斐波那契数字数目
LeetCode 731. 我的日程安排表 II
Web界面元素的测试
Career advancement Guide: recommended books for people in big factories