ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1310. ACM Diagnostics

Chinese translation
Posted by LightningUZ 26 Dec 2021 13:19
参考 百度知道
给定L,M,K,N,求序列A的数量。满足:
1. A的长度为L
2. A中元素均在 [1,M] 间的正整数
3. A的元素之和为K的倍数
求字典序第N小的序列A,排名从0开始标号
(即,称最小为“第0小”)
L<=100,M<=50,K<=50
N范围题目没有给

Edited by author 26.12.2021 13:22

Edited by author 26.12.2021 13:22