summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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