summaryrefslogtreecommitdiff
path: root/kattis-kth
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2024-07-06 18:33:45 +0200
committerMathias Magnusson <mathias@magnusson.space>2024-07-06 18:33:45 +0200
commit6e46289f2229152f487ca91855317efd38db20b2 (patch)
treed6028c9206bcbd8a796c43980eaaac9334fe7191 /kattis-kth
parentf50023521d1d80d2df0f039eec0db6fddb92c033 (diff)
downloadprogramming-problem-solving-6e46289f2229152f487ca91855317efd38db20b2.tar.gz
Found more shid!
Diffstat (limited to 'kattis-kth')
-rw-r--r--kattis-kth/different/main.hs1
-rw-r--r--kattis-kth/different/main.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/kattis-kth/different/main.hs b/kattis-kth/different/main.hs
new file mode 100644
index 0000000..7f89338
--- /dev/null
+++ b/kattis-kth/different/main.hs
@@ -0,0 +1 @@
+main=interact$unlines.map(show.abs.foldl1(-).map read.words).lines
diff --git a/kattis-kth/different/main.py b/kattis-kth/different/main.py
new file mode 100644
index 0000000..f31e513
--- /dev/null
+++ b/kattis-kth/different/main.py
@@ -0,0 +1,3 @@
+try:
+ while i:=input().split():print(abs(int(i[0])-int(i[1])))
+except:1