71192023-12-31 09:11:29MagyarKendeSZLGTáblajáték 2 (70 pont)cpp17Wrong answer 23/703ms4128 KiB
#include <bits/stdc++.h>

#define speed cin.tie(0); ios::sync_with_stdio(0)
#define cinv(v) for (auto& e : v) cin >> e;
#define all(v) v.begin(), v.end()
#define has(s, e) s.count(e)

using namespace std;
using ll = long long;
using point = array<int, 2>;

int main() {
    speed;

    int K, row = 0, col = 0;
    cin >> K;
    while (K--) {
        char m;
        cin >> m;

        if (m == '0') {
            row++;
            //col *= 10;
        }
        else if (m == '1') {
            row++;
            //col *= 10;
            //col++;
        }
        else if (m == '2') {
            row++;
            //col *= 10;
            //col += 2;
        }
        else if (m == '3') {
            row--;
            //col /= 10;
        }
        else if (m == '4') {
            /*if (col % 10) {
                col--;
            } else {
                col -= 8;
            }*/
        }
        else {
            /*if (col % 10 == 2) {
                col += 8;
            } else {
                col++;
            }*/
        }
    }

    cout << row << '\n' << col;
}
SubtaskSumTestVerdictTimeMemory
base23/70
1Wrong answer0/03ms1896 KiB
2Wrong answer0/03ms2112 KiB
3Partially correct1/23ms2292 KiB
4Partially correct1/33ms2512 KiB
5Partially correct1/33ms2600 KiB
6Partially correct1/33ms2744 KiB
7Partially correct1/33ms2820 KiB
8Partially correct1/33ms2940 KiB
9Partially correct1/33ms3024 KiB
10Partially correct1/33ms3152 KiB
11Partially correct1/33ms3240 KiB
12Partially correct1/33ms3472 KiB
13Partially correct1/33ms3464 KiB
14Partially correct1/33ms3568 KiB
15Partially correct1/43ms3644 KiB
16Partially correct1/43ms3740 KiB
17Partially correct1/43ms3748 KiB
18Partially correct1/43ms4128 KiB
19Partially correct1/43ms3912 KiB
20Partially correct1/43ms3988 KiB
21Partially correct1/43ms3904 KiB
22Partially correct1/43ms4056 KiB
23Accepted3/33ms4036 KiB