226012026-01-15 11:55:09tepucagnesMorze (60 pont)cpp17Wrong answer 6/601ms612 KiB
#include <iostream>

using namespace std;

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

        t=s.substr(i,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
base6/60
1Wrong answer0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Accepted3/31ms316 KiB
4Accepted3/31ms316 KiB
5Wrong answer0/31ms316 KiB
6Wrong answer0/31ms316 KiB
7Wrong answer0/31ms316 KiB
8Wrong answer0/31ms336 KiB
9Wrong answer0/41ms316 KiB
10Wrong answer0/41ms316 KiB
11Wrong answer0/41ms508 KiB
12Wrong answer0/71ms508 KiB
13Wrong answer0/71ms316 KiB
14Wrong answer0/81ms612 KiB
15Wrong answer0/81ms316 KiB