shunfurh 于 2017.09.10 13:47 提问

Fractal

A fractal is an object or quantity that displays self-similarity, in a somewhat technical sense, on all scales. The object need not exhibit exactly the same structure at all scales, but the same "type" of structures must appear on all scales.

A box fractal is defined as below :

A box fractal of degree 1 is simply
X
A box fractal of degree 2 is
X X
X
X X
If using B(n - 1) to represent the box fractal of degree n - 1, then a box fractal of degree n is defined recursively as following
B(n - 1) B(n - 1)
B(n - 1)
B(n - 1) B(n - 1)

Input

The input consists of several test cases. Each line of the input contains a positive integer n which is no greater than 7. The last line of input is a negative integer -1 indicating the end of input.

Output

For each test case, output the box fractal using the 'X' notation. Please notice that 'X' is an uppercase letter. Print a line with only a single dash after each test case. Don't output any trailing spaces at the end of each line, or you may get an 'Presentation Error'!

Sample Input

1
2
3
4
-1

Sample Output

X X
X

X X X X
X X
X X X X
X X
X
X X
X X X X
X X

X X X X X X X X
X X X X
X X X X X X X X
X X X X
X X
X X X X
X X X X X X X X
X X X X
X X X X X X X X
X X X X
X X
X X X X
X X
X
X X
X X X X
X X
X X X X
X X X X X X X X
X X X X
X X X X X X X X
X X X X
X X
X X X X
X X X X X X X X
X X X X

## X X X X X X X X

1个回答

devmiao      2017.09.27 21:52

[转]Ultra Fractal 5.04 破解版汉化包

tokudb  fractal tree (分型树)

FerryMan Fractal 1.8
FerryMan Fractal (FMF) 是全球唯一一款支持图层组的分形软件，也是难得的中国国产分形软件。它非常小（1.43M）却非常强大、灵活的交互式超级矢量设计工具。它的通用性来自它灵活漂亮的底层架构，可以为数学绘画提供基础平台。设计师可以用这个软件设计复数分形，也可以使用它的扩展组件设计三维场景或者导入照片。这一切都来自FMF所特有的Fibrics技术，使得一切和数字艺术相关的东西都有可能集成在一起。
POJ 1941 The Sierpinski Fractal

[poj3889]Fractal Streets

Fractal （分形）
A fractal is an object or quantity that displays self-similarity, in a somewhat technical sense, on all scales. The object need not exhibit exactly the same structure at all scales, but the same "type
FractalFox
FractalFox图片分形软件 BIP:BIP-001 FractalFox:FD1-EVAL-WI38X-POYHM-QXCFR
Fractal
Description A fractal is an object or quantity that displays self-similarity, in a somewhat technical sense, on all scales. The object need not exhibit exactly the same structure at all scales, but
[转]TokuDB中的COLA-Tree和TokuMax中的Fractal tree(分形树)
TokuDB中的COLA-Tree
poj 1941 The Sierpinski Fractal（递归）
poj 1941:The Sierpinski Fractal