所有检测均成功
The build was successful.
In most (all?) modern OOP languages class members visibility is assumed to be private and programmer has to consciously set it to public or protected. PHP has the different approach what can cause a security flaws in written scripts. AerScript will not follow this way, as it seems to be conceptually broken.
26 行
426 B
Plaintext
26 行
426 B
Plaintext
class Program {
|
|
|
|
private int fun(int $y) {
|
|
int $result = 1;
|
|
for(int $z = 1; $z <= $y; $z++) {
|
|
$result *= $z;
|
|
}
|
|
return $result;
|
|
}
|
|
|
|
public void main() {
|
|
int $z;
|
|
int $y = 5;
|
|
for(int $x = 0; $x < $y; $x++) {
|
|
for($z = 0; $z <= ($y - $x - 2); $z++) {
|
|
print(' ');
|
|
}
|
|
for($z = 0; $z <= $x; $z++) {
|
|
print($this->fun($x) / ($this->fun($z) * $this->fun($x - $z)), ' ');
|
|
}
|
|
print("\n");
|
|
}
|
|
}
|
|
|
|
}
|