28092023-01-26 13:33:34DalmMorze (60 pont)cpp11Accepted 60/603ms3672 KiB
#include <iostream>
#include <string>
using namespace std;

int main()
{
string kodok[]={"-----",
                ".----",
                "..---",
                "...--",
                "....-",
                ".....",
                "-....",
                "--...",
                "---..",
                "----."};

string beirtkod;
cin>>beirtkod;
string r;
for(int i=0;i<beirtkod.size();i=i+5){
   r=beirtkod.substr(i,5);
   for(int j=0;j<10;j++){
    if(r==kodok[j]){
        cout<<j;
    }
   }

}







































    return 0;
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/03ms1812 KiB
2Accepted0/02ms2016 KiB
3Accepted3/32ms2208 KiB
4Accepted3/32ms2408 KiB
5Accepted3/32ms2484 KiB
6Accepted3/32ms2492 KiB
7Accepted3/32ms2724 KiB
8Accepted3/32ms2832 KiB
9Accepted4/42ms2976 KiB
10Accepted4/42ms3172 KiB
11Accepted4/42ms3212 KiB
12Accepted7/72ms3340 KiB
13Accepted7/72ms3416 KiB
14Accepted8/82ms3412 KiB
15Accepted8/82ms3672 KiB