public class Test
{
public static void main(String args[])
{
Human nanmei = new Human("楠妹", "woman", 1.70f, 5000f, true, false);
System.out.println("我的名字是:" + nanmei.name + "\n" + ",哈!");
nanmei.ifTallRichHandsomeOrBeautiful();
int x = 0, y = 0;
double result = 0, m = 0, n = 0, j = 0, k = 0;
int[][] a = new int[80][30];
for (y = 0; y < 30; ++y)
{
for (x = 0; x < 80; ++x)
{
if (y <= 7 & x <= 40)
{
j = (7.0 - y) / 6.0;
k = (40.0 - x) / 16.0 - 1;
m = Math.pow(j, 2);
n = Math.pow(k, 2);
result = m + n;
if (result > 1)
{
a[x][y] = 1;
}
else
{
a[x][y] = 0;
}
}
if (y <= 7 & x > 40)
{
j = (7.0 - y) / 6.0;
k = (x - 40.0) / 16.0 - 1;
m = Math.pow(j, 2);
n = Math.pow(k, 2);
result = m + n;
if (result > 1)
{
a[x][y] = 1;
}
else
{
a[x][y] = 0;
}
}
if (y > 7 & x <= 40)
{
j = (7.0 - y) / 18.0;
k = (40.0 - x) / 32.0;
m = Math.pow(j, 2);
n = Math.pow(k, 0.5);
result = m + n;
if (result > 1)
{
a[x][y] = 1;
}
else
{
a[x][y] = 0;
}
}
if (y > 7 & x > 40)
{
j = (7.0 - y) / 18.0;
k = (x - 40.0) / 32.0;
m = Math.pow(j, 2);
n = Math.pow(k, 0.5);
result = m + n;
if (result > 1)
{
a[x][y] = 1;
}
else
{
a[x][y] = 0;
}
}
}
}
for (y = 0; y < 25; ++y)
{
for (x = 0; x < 80; ++x)
{
System.out.print(a[x][y]);
}
}
}
}