Last active
September 21, 2017 17:50
-
-
Save zonuexe/1507943849964e53d0f428bf3790b77b to your computer and use it in GitHub Desktop.
もっと嫌なFizzBuzz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php call_user_func($f=function($n)use(&$f){if(!$n)return;$f($n-1);echo $n%3?($n%5?$n:'Buzz'):($n%5?'Fizz':'FizzBuzz'),PHP_EOL;}, count(call_user_func(function (){$f=fopen(__FILE__, 'r');return explode("\n", stream_get_contents($f));}))); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment