我的代码是这个,多大的浮点次方都能正常输出,可是就是不能ac

<?php
$result = array();
while (fscanf(STDIN, "%s%d", $a, $b) == 2) {
    $result[] = bcpow($a, $b, 1000);
}
foreach ($result as $r) {
    printf("%s\n", preg_replace("/\..*0+$/", '' , $r));
}