Luogu P1008 - Triple hit

This problem has no inputs, and both mental calculation or programming are acceptable.

If 1,2,,91,2,\cdots,9 were split into 33 disjoint groups and we use them to make three 33-digit numbers x,y,zx,y,z, such that x:y:z=1:2:3x:y:z=1:2:3, then find all possible triples for (x,y,z)(x,y,z).

How to submit:

Find all possible triples for (x,y,z)(x,y,z), and submit (x+2y+4z)\displaystyle \sum (x+2y+4z).

Luogu Problem Set


Problem Loading...

Note Loading...

Set Loading...