How to start?

https://icpcarchive.ecs.baylor.edu/external/20/2029.pdf

1. How to write a code to describe the adjacent? its all different with different side length

Just put it in array of the maximum length

level 0 = 1 member
level 1 = 3 member
level 2 = 5 member
ans so on


1
2
3
4
5

const int max_level = 6;

int colors[ max_level ][ max_level * 2 - 1 ];


is that what you're asking ?
Last edited on
is that what you're asking ?


I don't think so. I think he's asking how to solve the problem. I'll give you a hint; start by opening the input file and reading each line and parsing each line contents into a vector of a struct/class of your own definition. That'll be a start...
Topic archived. No new replies allowed.