aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rwxr-xr-x[-rw-r--r--]python/CombinationLock.py0
-rw-r--r--python/DormsRoom.py7
2 files changed, 7 insertions, 0 deletions
diff --git a/python/CombinationLock.py b/python/CombinationLock.py
index 0ac8b2c..0ac8b2c 100644..100755
--- a/python/CombinationLock.py
+++ b/python/CombinationLock.py
diff --git a/python/DormsRoom.py b/python/DormsRoom.py
new file mode 100644
index 0000000..8dcfa75
--- /dev/null
+++ b/python/DormsRoom.py
@@ -0,0 +1,7 @@
+tt = int(input())
+n = int(input())
+s = input()
+sp, chars = map(str, input())
+sp = int(sp)
+idx = s[::-1].index(chars)
+print(idx)