0
How do i solve such a problem via cpp?
Three types of micro-organisms are usually found together in super-colonies. Due to their structures, they organize themselves in mesmerizing cubes with beautiful cross-sections. Although no one knows how they organize themselves prior to the third day, we have clear understanding of how they organize themselves between the third and seventh day. Research has shown that these super-colonies grow in predictable patterns up to one month. Study carefully the existing samples and predict how the cross-sections of the super-colonies would appear on other days. Test Input : 4 Output ---#--- --###-- -##+##- ##+++## -##+##- --###-- ---#---
5 ответов
+ 2
Is there more than the example with Input 4??
+ 2
First of all you have to find the system behind the patterns
(maybe:
Firts row:
(n-1)*”-“ “#” (n-1)*”-“
row number k:
(n-k)*”-“ “##” (2k-5)*”+” “##” (n-k)*”-“
Last row:
(n-1)*”-“ “#” (n-1)*”-“
)
Than you have to implement this in your code
+ 2
Nice to hear that I could help you
If you have anither question you can ask me
0
I appreciate... i was able to solve via these guidelines..
0
I appreiciate☺