28072023-01-26 13:24:06DalmMorze (60 pont)cpp11Wrong answer 18/603ms4104 KiB
#include <iostream>
#include <string.h>
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<9;j++){
    if(r==kodok[j]){
        cout<<j;
    }
   }

}







































    return 0;
}
SubtaskSumTestVerdictTimeMemory
base18/60
1Wrong answer0/03ms1812 KiB
2Wrong answer0/02ms2004 KiB
3Accepted3/32ms2204 KiB
4Accepted3/32ms2344 KiB
5Accepted3/32ms2552 KiB
6Accepted3/32ms2756 KiB
7Accepted3/32ms2964 KiB
8Accepted3/32ms3160 KiB
9Wrong answer0/42ms3372 KiB
10Wrong answer0/42ms3448 KiB
11Wrong answer0/42ms3568 KiB
12Wrong answer0/72ms3672 KiB
13Wrong answer0/72ms3776 KiB
14Wrong answer0/82ms3848 KiB
15Wrong answer0/82ms4104 KiB