28122023-01-26 13:36:48KristófMorze (60 pont)cpp11Accepted 60/603ms3428 KiB
#include <iostream>
#include <string>
using namespace std;

int main()
{

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


}

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/03ms1684 KiB
2Accepted0/02ms1848 KiB
3Accepted3/32ms2056 KiB
4Accepted3/32ms2260 KiB
5Accepted3/32ms2464 KiB
6Accepted3/32ms2452 KiB
7Accepted3/32ms2576 KiB
8Accepted3/32ms2832 KiB
9Accepted4/42ms3064 KiB
10Accepted4/42ms3240 KiB
11Accepted4/42ms3312 KiB
12Accepted7/72ms3428 KiB
13Accepted7/72ms3380 KiB
14Accepted8/82ms3400 KiB
15Accepted8/82ms3400 KiB