111312024-07-07 13:25:48probaMorze (60 pont)python3Wrong answer 3/6018ms3084 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 = jel.count('.')
    else:
        j = 5 + jel.count('.')
    print(j)
    
SubtaskSumTestVerdictTimeMemory
base3/60
1Wrong answer0/017ms2916 KiB
2Wrong answer0/017ms2992 KiB
3Accepted3/317ms2960 KiB
4Wrong answer0/317ms2992 KiB
5Wrong answer0/317ms2916 KiB
6Wrong answer0/318ms3044 KiB
7Wrong answer0/317ms3084 KiB
8Wrong answer0/317ms2936 KiB
9Wrong answer0/417ms2916 KiB
10Wrong answer0/418ms2916 KiB
11Wrong answer0/418ms2892 KiB
12Wrong answer0/717ms3016 KiB
13Wrong answer0/718ms2952 KiB
14Wrong answer0/817ms3068 KiB
15Wrong answer0/817ms3044 KiB