Precreation contest files

This commit is contained in:
2026-02-11 11:28:23 +07:00
parent 0a8ea477bb
commit cb9f7cab30
134 changed files with 1848 additions and 0 deletions

21
misc/m5a10/code.py Normal file
View File

@@ -0,0 +1,21 @@
a, b = input().split()
map_a = {}
map_b = {}
for i in range(len(a)):
if a[i] in map_a:
if (b[i] != map_a[a[i]]):
print('false')
break
else:
map_a[a[i]] = b[i]
if b[i] in map_b:
if (a[i] != map_b[b[i]]):
print('false')
break
else:
map_b[b[i]] = a[i]
else:
print('true')