38812023-03-03 13:36:53cstmMorze (60 pont)python3Accepted 60/6017ms13168 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='')
    if (str3 == "----."):
         print("9", end='')
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/017ms10984 KiB
2Accepted0/017ms11260 KiB
3Accepted3/317ms11540 KiB
4Accepted3/317ms11648 KiB
5Accepted3/317ms11892 KiB
6Accepted3/317ms11988 KiB
7Accepted3/317ms12224 KiB
8Accepted3/317ms12332 KiB
9Accepted4/417ms12592 KiB
10Accepted4/417ms12588 KiB
11Accepted4/417ms12464 KiB
12Accepted7/717ms12636 KiB
13Accepted7/717ms12788 KiB
14Accepted8/817ms13168 KiB
15Accepted8/817ms13128 KiB