<br />题目:pku1319<br /> <br />解法:斜放n层高为 sqrt(3.0)/2*(n-1)+1<br /> <br />代码:<br /> <br />// All dimensions will be less than 128. // If the pattern doesn't matter, that is the same number of pipes can be packed // with either a grid or skew pattern, the