38512023-03-03 12:09:26cstmMorze (60 pont)python3Wrong answer 0/6017ms13144 KiB
str=input()
a=int(len(str)/5)
for i in range(0,a):
    str3=str[i*5:(i+1)*5]
    if(str3=="-----"):
        print("0",end='')
        if (str3 == ".----"):
            print("1", end='')
            if (str3 == "..---"):
                print("2", end='')
                if (str3 == "...--"):
                    print("3", end='')
                    if (str3 == "....-"):
                        print("4", end='')
                        if (str3 == "....."):
                            print("5", end='')
                            if (str3 == "-...."):
                                print("6", end='')
                                if (str3 == "--..."):
                                    print("7", end='')
                                    if (str3 == "---.."):
                                        print("8", end='')
                                    else:
                                        print("9", end='')
SubtaskSumTestVerdictTimeMemory
base0/60
1Wrong answer0/017ms10828 KiB
2Wrong answer0/017ms11104 KiB
3Wrong answer0/317ms11424 KiB
4Wrong answer0/317ms11464 KiB
5Wrong answer0/317ms11844 KiB
6Wrong answer0/317ms11836 KiB
7Wrong answer0/317ms11972 KiB
8Wrong answer0/317ms12320 KiB
9Wrong answer0/417ms12488 KiB
10Wrong answer0/417ms13072 KiB
11Wrong answer0/417ms12820 KiB
12Wrong answer0/717ms12936 KiB
13Wrong answer0/717ms13124 KiB
14Wrong answer0/817ms13144 KiB
15Wrong answer0/817ms12984 KiB