186852025-10-30 15:10:45VizsimiMorze (60 pont)python3Wrong answer 0/6017ms3372 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/016ms2888 KiB
2Wrong answer0/017ms3096 KiB
3Wrong answer0/316ms2868 KiB
4Wrong answer0/316ms3080 KiB
5Wrong answer0/316ms2872 KiB
6Wrong answer0/316ms2912 KiB
7Wrong answer0/317ms3012 KiB
8Wrong answer0/316ms3084 KiB
9Wrong answer0/416ms2896 KiB
10Wrong answer0/416ms2872 KiB
11Wrong answer0/414ms3096 KiB
12Wrong answer0/714ms2880 KiB
13Wrong answer0/714ms3372 KiB
14Wrong answer0/817ms3308 KiB
15Wrong answer0/816ms3120 KiB