summaryrefslogtreecommitdiffstats
path: root/fiz/naloga/relacije/lušči.php
diff options
context:
space:
mode:
Diffstat (limited to 'fiz/naloga/relacije/lušči.php')
-rwxr-xr-xfiz/naloga/relacije/lušči.php12
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;
+}
+?>