After a year on Codewars, you devised a plan to keep advancing in the honor rankings while you take a break. You used a "Clone Machine" to create clones that can solve your Kata problems. However, each clone exhibits a flaw: they lose their ability to solve Kata with each passing day.
Task
Your task is to write a method that predicts the final outcome of this cloning process based on the number of Kata you can solve per day. Each day, a clone loses the ability to solve one less Kata than the previous day until they can no longer solve any.
Input
A single integer kata_per_day representing the number of Kata you can solve on the first day (1 ≤ kata_per_day ≤ 100).
Output
An array containing two integers:
The total number of clones created by the time they can no longer solve any Kata.
The total number of Kata solved by all clones combined by the time the last clone can no longer solve Kata.
Example
Input:
text
5
Output:
text
[5, 15]
Explanation:
Day 1: 5 Kata solved, 1 clone created.
Day 2: 4 Kata solved, 1 more clone created (total: 2).
Day 3: 3 Kata solved, 1 more clone created (total: 3).
Day 4: 2 Kata solved, 1 more clone created (total: 4).
Day 5: 1 Kata solved, 1 more clone created (total: 5).
Total Kata solved: 5 + 4 + 3 + 2 + 1 = 15 Kata.
Input:
text
3
Output:
text
[3, 6]
Explanation:
Day 1: 3 Kata solved, 1 clone created.
Day 2: 2 Kata solved, 1 more clone created (total: 2).
Day 3: 1 Kata solved, 1 more clone created (total: 3).
Total Kata solved: 3 + 2 + 1 = 6 Kata.
Implementation
Please place your solution in the /app/ directory. Your code should follow the input/output specifications and handle the constraints mentioned.
Important: place your implementation at /app/solution.py so the verifier can run it.