#P1707. 刷题比赛
刷题比赛
Description
Luogu OJ is certainly a good place, and nodgd wants to share it with friends. So he invited his friends Ciocio and Nicole to practice problems together. Since they love contests, they naturally would not miss such an opportunity for a problem-solving contest!
On day , nodgd, Ciocio, Nicole each solved problem.
On day , nodgd, Ciocio, Nicole each solved problems.
They all have strict rules for solving problems and will strictly follow the rules to solve a certain number of problems each day.
- The number of problems nodgd solves on day :
- The number of problems Ciocio solves on day :
- The number of problems Nicole solves on day :
(All letters are given constants and are guaranteed to be positive integers.)
Then they started a long problem-solving contest, lasting for days.
However, time is precious, and nodgd wants to quickly know how many problems each person solves on day .
But nodgd still has a lot of math contest problems, physics contest problems, English contest problems, art contest problems, PE contest problems… to do, so please help him calculate.
Because the results can be large, output the values .
Input Format
The first line contains two positive integers .
The second line contains four positive integers .
The third line contains three positive integers .
The fourth line contains three positive integers .
Output Format
Output three lines, each containing a name + a space + an integer.
In order: nodgd, Ciocio, Nicole, and their number of problems solved on day .
4 10007
2 1 1 1
2 2 3
1 1 2
nodgd 74
Ciocio 80
Nicole 59
Hint
For of the testdata, , , .
Translated by ChatGPT 5
京公网安备 11011102002149号