From bf426d7cc7facd5e521c9e38fbc54df042603877 Mon Sep 17 00:00:00 2001 From: Zeheng Li Date: Tue, 21 May 2024 22:59:15 -0600 Subject: [PATCH] add examples --- src/barcelona.py | 9 +++++++++ src/bergmal.kt | 3 +++ src/bergmal.lua | 1 + src/bergmal.py | 1 + src/bergmal.rb | 1 + 5 files changed, 15 insertions(+) create mode 100644 src/barcelona.py create mode 100644 src/bergmal.kt create mode 100644 src/bergmal.lua create mode 100644 src/bergmal.py create mode 100644 src/bergmal.rb diff --git a/src/barcelona.py b/src/barcelona.py new file mode 100644 index 00000000..7cd5a624 --- /dev/null +++ b/src/barcelona.py @@ -0,0 +1,9 @@ +n, k = input().split() +a = input().split() +ind = a.index(k) +if ind == 0: + print("fyrst") +elif ind == 1: + print("naestfyrst") +else: + print(ind + 1, "fyrst") diff --git a/src/bergmal.kt b/src/bergmal.kt new file mode 100644 index 00000000..d9561a7c --- /dev/null +++ b/src/bergmal.kt @@ -0,0 +1,3 @@ +fun main() { + println(readLine()) +} diff --git a/src/bergmal.lua b/src/bergmal.lua new file mode 100644 index 00000000..eae1a1fc --- /dev/null +++ b/src/bergmal.lua @@ -0,0 +1 @@ +print(io.read()) diff --git a/src/bergmal.py b/src/bergmal.py new file mode 100644 index 00000000..8475614c --- /dev/null +++ b/src/bergmal.py @@ -0,0 +1 @@ +print(input()) diff --git a/src/bergmal.rb b/src/bergmal.rb new file mode 100644 index 00000000..c600d25d --- /dev/null +++ b/src/bergmal.rb @@ -0,0 +1 @@ +puts gets