该楼层疑似违规已被系统折叠隐藏此楼查看此楼
public static void sysh() {
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]);
}
System.out.println();
}
}