16662022-12-01 13:43:38DalmMorze (60 pont)cpp11Wrong answer 18/603ms4144 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/03ms1684 KiB
2Wrong answer0/02ms1976 KiB
3Accepted3/32ms2220 KiB
4Accepted3/32ms2384 KiB
5Accepted3/32ms2628 KiB
6Accepted3/32ms2792 KiB
7Accepted3/32ms2884 KiB
8Accepted3/32ms3088 KiB
9Wrong answer0/42ms3288 KiB
10Wrong answer0/42ms3364 KiB
11Wrong answer0/42ms3612 KiB
12Wrong answer0/72ms3816 KiB
13Wrong answer0/72ms3888 KiB
14Wrong answer0/82ms3900 KiB
15Wrong answer0/82ms4144 KiB