Choosing Specific Colors, Not the Default Cycle
Pike Street Studio names the colour of every line it draws rather than accepting whatever the drawing tool offers next. Left to the default, the same series comes out in different colours on different charts depending purely on the order things were added, and a reader working through a deck has to relearn the key on every page. Fixing the colours makes a series recognisable across a whole report. The caption gives series A's total.
Task: Print the total of series A's values.
Input
The first line holds an integer n, the number of points. Each of the next n lines holds three fields separated by single spaces: the point's label as a whole number, then series A's value there, then series B's. n is at least 1.
Output
One line holding the total, printed as Python prints the number it built: a total of sixty comes out as 60.0, never as 60 and never as 60.00.
Example:
Input:
3
1 10 5
2 20 5
3 30 5
Output:
60.0
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in