Home  >  Article  >  Backend Development  >  这里是一个编程游戏,有一关过不了,请指教

这里是一个编程游戏,有一关过不了,请指教

WBOY
WBOYOriginal
2016-06-23 13:15:42902browse

https://paiza.jp/poh/ando/challenge/5eb06c7e/ando16
这是一个编程游戏网站,有人可以过“眼带”吗?就是眼睛那行最后一个。
虽然是日文的,但是觉得问题还是比较好理解的。
我是过了代码调试,去到最终测试第一个CASE就出错了。


回复讨论(解决方案)

fgets(STDIN);
fgets(STDIN);
$h = explode(' ', trim(fgets(STDIN)));
fgets(STDIN);
$o = array_diff(explode(' ', trim(fgets(STDIN))), $h);
sort($o);
echo empty($o) ? 'None' : implode(' ', $o);
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn