当前位置:网站首页>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
边栏推荐
- Summary of the post of "Web Test Engineer"
- G - Supermarket
- selenium源码通读·9 |DesiredCapabilities类分析
- 数据库隔离级别
- Simulation volume leetcode [general] 1143 Longest common subsequence
- JWT-JSON WEB TOKEN
- leetcode 24. 两两交换链表中的节点
- Simulation volume leetcode [general] 1249 Remove invalid parentheses
- 全链路压测:构建三大模型
- 曼哈顿距离和-打印菱形
猜你喜欢
调用链监控Zipkin、sleuth搭建与整合
F - true liars (category and search set +dp)
【MQTT从入门到提高系列 | 01】从0到1快速搭建MQTT测试环境
LeetCode 1200. Minimum absolute difference
The whole process realizes the single sign on function and the solution of "canceltoken" of undefined when the request is canceled
Win10 cannot operate (delete, cut) files
org. activiti. bpmn. exceptions. XMLException: cvc-complex-type. 2.4. a: Invalid content beginning with element 'outgoing' was found
B - The Suspects
联合索引的左匹配原则
記一個基於JEECG-BOOT的比較複雜的增删改功能的實現
随机推荐
F - true liars (category and search set +dp)
使用Nacos管理配置
ESP32 ESP-IDF看门狗TWDT
【无App Push 通用测试方案
LeetCode 1200. 最小绝对差
The pit encountered by keil over the years
Private cloud disk deployment
Properties file
Thoughts on data security (Reprint)
Cannot create PoolableConnectionFactory (Could not create connection to database server. 错误
D - How Many Answers Are Wrong
Black cat takes you to learn UFS protocol Chapter 4: detailed explanation of UFS protocol stack
Simulation volume leetcode [general] 1062 Longest repeating substring
On weak network test of special test
Cannot create poolableconnectionfactory (could not create connection to database server. error
[postman] the monitors monitoring API can run periodically
Digital triangle model acwing 1015 Picking flowers
Summary of the post of "Web Test Engineer"
leetcode 24. Exchange the nodes in the linked list in pairs
Simulation volume leetcode [general] 1314 Matrix area and