111972024-07-16 12:43:5642Morze (60 pont)python3Accepted 60/6018ms3064 KiB
from sys import stdin
input = stdin.readline

def main():
    s = input().strip()
    res = ''
    i = 0
    while i+4 < len(s):
        n=s[i:i+5].count('.')
        if s[i+4] == '.':
            res+=str(10-n)
        else:
            res+=str(n)
        i+=5
    print(res)

main()
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/018ms2960 KiB
2Accepted0/018ms2952 KiB
3Accepted3/317ms2916 KiB
4Accepted3/317ms2920 KiB
5Accepted3/317ms2916 KiB
6Accepted3/317ms2888 KiB
7Accepted3/317ms3064 KiB
8Accepted3/317ms3064 KiB
9Accepted4/418ms2844 KiB
10Accepted4/417ms2916 KiB
11Accepted4/417ms3064 KiB
12Accepted7/717ms3052 KiB
13Accepted7/718ms2960 KiB
14Accepted8/817ms2912 KiB
15Accepted8/817ms3012 KiB