226042026-01-15 11:59:18tepucagnesMorze (60 pont)cpp17Wrong answer 15/602ms336 KiB
#include <iostream>

using namespace std;

int main()
{
    string s;
    string t;
    cin >> s;
    int x=(s.size())/5;
    for (int i=0; i<x; i++)
    {

        t=s.substr(i*5,5);
        if(t=="-----")
        {
            cout << 0;
        }
        if(t==".----")
        {
            cout << 1;
        }
        if(t=="..---")
        {
            cout << 2;
        }
        if(t=="...--")
        {
            cout << 3;
        }
        if(t=="....-")
        {
            cout << 4;
        }
        if(t==".....")
        {
            cout << 5;
        }
        if(t=="-....")
        {
            cout << 6;
        }
        if(t=="--...")
        {
            cout << 7 << " ";
        }
        if(t=="---..")
        {
            cout << 8 << " ";
        }
        if(t=="----.")
        {
            cout << 9 << " ";
        }
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base15/60
1Wrong answer0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Accepted3/31ms316 KiB
4Accepted3/31ms316 KiB
5Accepted3/31ms336 KiB
6Accepted3/31ms332 KiB
7Accepted3/31ms316 KiB
8Wrong answer0/32ms316 KiB
9Wrong answer0/41ms316 KiB
10Wrong answer0/41ms316 KiB
11Wrong answer0/41ms316 KiB
12Wrong answer0/71ms316 KiB
13Wrong answer0/71ms316 KiB
14Wrong answer0/81ms316 KiB
15Wrong answer0/82ms316 KiB