111322024-07-07 13:27:24probaMorze (60 pont)python3Wrong answer 6/6018ms3064 KiB
# morze
#m = ['-----','.----','..---','...--','....-','.....','-....','--...','---..','----.']
#fsz = ".....--...---.."
fsz = input()

for i in range(0, len(fsz), 5):
    jel = fsz[i:i+5]
    #print(jel)
    if jel.count('-')==5:
        j = 0
    elif jel[0] =='.':
        j = 5-jel.count('-')
    else:
        j = 5 + jel.count('-')
    print(j)
    
SubtaskSumTestVerdictTimeMemory
base6/60
1Wrong answer0/017ms2916 KiB
2Wrong answer0/018ms2964 KiB
3Accepted3/318ms2916 KiB
4Accepted3/317ms2968 KiB
5Wrong answer0/317ms2916 KiB
6Wrong answer0/317ms3064 KiB
7Wrong answer0/317ms3052 KiB
8Wrong answer0/317ms2916 KiB
9Wrong answer0/417ms2936 KiB
10Wrong answer0/417ms2916 KiB
11Wrong answer0/417ms2872 KiB
12Wrong answer0/717ms3064 KiB
13Wrong answer0/717ms2916 KiB
14Wrong answer0/817ms3064 KiB
15Wrong answer0/817ms3064 KiB