117562024-11-09 02:32:57balintMorze (60 pont)python3Accepted 60/6017ms3384 KiB
from sys import stdin


def main():
    buff = ""
    while buff != "\n":
        buff += stdin.read(1)
        if len(buff) == 5:
            match buff:
                case "-----":
                    print("0", end="")
                case ".----":
                    print("1", end="")
                case "..---":
                    print("2", end="")
                case "...--":
                    print("3", end="")
                case "....-":
                    print("4", end="")
                case ".....":
                    print("5", end="")
                case "-....":
                    print("6", end="")
                case "--...":
                    print("7", end="")
                case "---..":
                    print("8", end="")
                case "----.":
                    print("9", end="")
            buff = ""


main()
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/017ms3124 KiB
2Accepted0/017ms3120 KiB
3Accepted3/316ms3120 KiB
4Accepted3/316ms2952 KiB
5Accepted3/317ms3128 KiB
6Accepted3/317ms3384 KiB
7Accepted3/317ms2996 KiB
8Accepted3/316ms3080 KiB
9Accepted4/417ms3132 KiB
10Accepted4/417ms3128 KiB
11Accepted4/416ms2996 KiB
12Accepted7/716ms3128 KiB
13Accepted7/716ms3312 KiB
14Accepted8/816ms3128 KiB
15Accepted8/816ms3128 KiB