Fool's Day 2014

Problem #94

Tags: c-1 c-0 simple

Who solved this?

Also available in: Slovak

Today I wanted to create new task and found it is April 1 2014 - the Fool's Day when people are trying to overjoke each other.

So here is a small programming problem without the problem statement. Nevertheless you can do it! Good luck! :)

Example:

input data:
5
1 2
1 2 3
2 3 4
2 4 6 8 10
7 11 19

answer:
5 14 29 220 531
You need to login to get test data and submit solution.