#P99. Communicative Problem Test 2: Eventual Addition
Communicative Problem Test 2: Eventual Addition
Person in charge
Attention
This is a communicative problem.
You must strictly follow the submission guidelines!!!
Problem Description
Given two integers and , compute .
However, there's a twist - you must perform the calculation in steps.
Evaluation Method
Your program will be executed n times. In each execution (you won't know which execution it is), your program must:
- Read three integers , ,
- Output one integer.
- First execution:
- Subsequent executions: from previous execution
- Final execution: must be equal to
- Each execution must satisfy
Important Notes
- Any attempt to attack the judge will be treated as cheating!
- Submission shouldn't exceed lines and bytes.
- Compilation attributes:
-O2 -std=c++14
. - Time limit: 1s over all runs; Memory limit: 512MB per run.
Constraints