Canadian Computing Competition: 2004 Stage 1, Senior #3
A spreadsheet consists of a number of "cells" set in a rectangular grid. Each is addressed with one letter from
Every cell has a value, and this can be specified in one of two ways:
- as an integer from
to - as a sum of the values of up to
other cells
Cell values may be interdependent (that is,
Input Specification
Input will consist of +
symbol (e.g. A1+B5+D3
).
Output Specification
Output *
) in place of its value.
No cell's final value will exceed
Sample Input
1 2 3 A1+A2+A3 A3+A4 A1+A4+A5 A8+A9 A9 A8
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
Sample Output
1 2 3 6 9 16 * * *
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
Comments
why does the problem text look so weird (lots of slash slash bracket)
Edit: seems to be just me, dunno why this is happening
Edit 2: why does this work when I don't log in but then its broken when I log in
Your math engine is set to "Leave as LaTeX" on your profile, so you're seeing the raw LaTeX code instead of the rendered end result.
You can fix this by editing your profile settings and changing the "Math engine" option. I would advise the "Detect best quality" option.
Thanks
This comment is hidden due to too much negative feedback. Show it anyway.
I'm stuck on this problem for so long... I am getting mental issues off of this crap