158262025-03-03 23:01:18rennMorze (60 pont)cpp17Wrong answer 0/601ms564 KiB
#include <bits/stdc++.h>
using namespace std;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(0);

    int bifa[] = {5, 4, 0, 3, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 8, 0, 9, 0};

    int curr = 0;
    char c;
    int state;
    while(cin)
    {
        state = 0;
        for(int i = 0; i < 5; i++)
        {
            cin >> c;
            state = state*2+1 + (c == '-');
        }
        cout << bifa[state-31];
    }
    cout << "\n";
}
SubtaskSumTestVerdictTimeMemory
base0/60
1Wrong answer0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/31ms508 KiB
4Wrong answer0/31ms316 KiB
5Wrong answer0/31ms316 KiB
6Wrong answer0/31ms316 KiB
7Wrong answer0/31ms508 KiB
8Wrong answer0/31ms508 KiB
9Wrong answer0/41ms316 KiB
10Wrong answer0/41ms316 KiB
11Wrong answer0/41ms316 KiB
12Wrong answer0/71ms316 KiB
13Wrong answer0/71ms316 KiB
14Wrong answer0/81ms316 KiB
15Wrong answer0/81ms564 KiB