perl -e '($f, $b, $fn, $bn) = (
(shift or 3),
(shift or 5),
(shift or "Fizz"),
(shift or "Buzz")
) and
print map{
$s = "";
$_ % $f or $s .= $fn;
$_ % $b or $s .= $bn;
$s or $s = $_;
$s .= "\n"
} 1..(shift or 100)'
More than 5 years have passed since last update.
話の流れから生まれた、生涯どこにも行き場の無いであろうFizzBuzzを供養する
Last updated at Posted at 2015-08-14
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
22