49732023-04-08 00:56:09TomaSajtMorze (60 pont)cpp17Accepted 60/603ms3220 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
  cin.tie(0), ios::sync_with_stdio(0);
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i += 5) {
    int v = count(s.begin() + i, s.begin() + i + 5, '.');
    cout << (s[i + 4] == '-' ? v : 10 - v);
  }
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/03ms1700 KiB
2Accepted0/03ms1860 KiB
3Accepted3/32ms1944 KiB
4Accepted3/33ms2076 KiB
5Accepted3/33ms2308 KiB
6Accepted3/33ms2516 KiB
7Accepted3/33ms2724 KiB
8Accepted3/33ms2920 KiB
9Accepted4/43ms3028 KiB
10Accepted4/43ms3128 KiB
11Accepted4/42ms3116 KiB
12Accepted7/73ms2984 KiB
13Accepted7/73ms3112 KiB
14Accepted8/82ms3220 KiB
15Accepted8/83ms3200 KiB