在
You are given a positive integer M. Find a positive integer N and a sequence of non-negative integers A=(A1,A2,…,AN) that satisfy all of the following conditions:
- 1≤N≤20
- 0≤Ai≤10 (1≤i≤N)
- i=1∑N3Ai=M
It can be proved that under the constraints, there always exists at least one such pair of N and A satisfying the conditions.
中
i=1∑N3Ai=M
是啥意思?
rt