cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How to start?
How to start?
Aug 13, 2013 at 7:29am UTC
codeback99
(57)
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
Aug 13, 2013 at 11:06am UTC
rmxhaha
(247)
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
Aug 13, 2013 at 11:31am UTC
Aug 13, 2013 at 12:19pm UTC
ajh32
(659)
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.