diff options
Diffstat (limited to 'fiz/naloga/relacije/lušči.php')
-rwxr-xr-x | fiz/naloga/relacije/lušči.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fiz/naloga/relacije/lušči.php b/fiz/naloga/relacije/lušči.php new file mode 100755 index 0000000..ed7710a --- /dev/null +++ b/fiz/naloga/relacije/lušči.php @@ -0,0 +1,12 @@ +#!/usr/bin/env php +<?php +$a = true; +while ($a) { + $a = fgets(STDIN); + if ($a == "") + continue; + $v = abs(explode("\t", $a)[$argv[1] == "x" ? 1 : 2]); + if ($v <= $argv[2]) + echo $a; +} +?> |