186842025-10-30 15:07:29VizsimiMorze (60 pont)python3Wrong answer 0/6017ms3312 KiB
start = input() + "x"
morze = ["-----", ".----", "..---", "...--", "....-", ".....", "-....", "--...", "---..", "----."]
end = ""
current = ""

for i in start:
  if len(current) < 5:
    current += i
  else:
    print(current)
    for j in range(0, 10):
      if current == morze[j]:
        end += str(j)
        break
    current = i
print(end)
SubtaskSumTestVerdictTimeMemory
base0/60
1Wrong answer0/014ms3144 KiB
2Wrong answer0/016ms3312 KiB
3Wrong answer0/316ms2868 KiB
4Wrong answer0/316ms2988 KiB
5Wrong answer0/317ms2868 KiB
6Wrong answer0/316ms2864 KiB
7Wrong answer0/316ms3112 KiB
8Wrong answer0/316ms3308 KiB
9Wrong answer0/414ms2876 KiB
10Wrong answer0/416ms3124 KiB
11Wrong answer0/414ms3076 KiB
12Wrong answer0/714ms3052 KiB
13Wrong answer0/716ms3096 KiB
14Wrong answer0/817ms3104 KiB
15Wrong answer0/817ms3104 KiB