summaryrefslogtreecommitdiffstats
path: root/fiz/naloga/relacije/lušči.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-06-01 03:24:04 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-06-01 03:24:04 +0200
commit324e498c63145c6612ba8142ddd4e59670108582 (patch)
tree6e6fda75695bae205bf790d73f9f1cfa47846907 /fiz/naloga/relacije/lušči.php
parentmeritev (diff)
downloadsola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.gz
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.bz2
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.lz
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.xz
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.zst
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.zip
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;
+}
+?>