30302023-02-08 18:27:04xxxMorze (60 pont)cpp11Wrong answer 22/603ms3392 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    string mordze;
    getline(cin, mordze);


    char kezd, veg;
    int szam = 0;

    for (int i = 0; i < mordze.length() / 5; i++){
        kezd = mordze[i * 5];
        szam = 0;
        if (kezd == '-')
            szam = 5;
        for (int j = 0; j < 5; j++) {
            if (kezd == '.' && mordze[(i * 5) + j] == '.') {
                szam++;
            } else if (kezd == '-' && mordze[(i * 5) + j] == '-') {
                szam++;
            }
        }
        cout << szam;
    }
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base22/60
1Wrong answer0/03ms1816 KiB
2Wrong answer0/03ms2052 KiB
3Accepted3/32ms2136 KiB
4Accepted3/33ms2216 KiB
5Accepted3/33ms2428 KiB
6Accepted3/33ms2640 KiB
7Accepted3/32ms2756 KiB
8Accepted3/33ms2848 KiB
9Wrong answer0/42ms2972 KiB
10Accepted4/42ms2976 KiB
11Wrong answer0/43ms3208 KiB
12Wrong answer0/72ms3180 KiB
13Wrong answer0/72ms3184 KiB
14Wrong answer0/83ms3392 KiB
15Wrong answer0/83ms3360 KiB