192322025-12-02 11:31:45szabel26Sakktábla bábukkalcpp17Wrong answer 0/802ms592 KiB
// nemes22025.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
using namespace std;

char tabla1[9][9], tabla2[9][9], x[9][9];

int F_db = 0, t1_db = 0, t2_db = 0;

int main()
{
    for (int i = 1; i <= 8; ++i)
    {
        for (int j = 1; j <= 8; ++j)
        {
            if ((i + j) % 2 == 0)
            {
                tabla1[i][j] = 'V';
                tabla2[i][j] = 'S';
            }
            else
            {
                tabla1[i][j] = 'S';
                tabla2[i][j] = 'V';
            }
            cin >> x[i][j];

            if (x[i][j] != 'F')
            {
                ++F_db;
                if (x[i][j] == tabla1[i][j]) ++t1_db;
                if (x[i][j] == tabla2[i][j]) ++t2_db;
            }
        }
    }

    /*for (int i = 1; i <= 8; ++i)
    {
        for (int j = 1; j <= 8; ++j)
        {
            cout << tabla1[i][j] << " ";
        }
        cout << endl;
    }

    cout << endl;

    for (int i = 1; i <= 8; ++i)
    {
        for (int j = 1; j <= 8; ++j)
        {
            cout << tabla2[i][j] << " ";
        }
        cout << endl;
    }*/

    if (t1_db == F_db || t2_db == F_db) cout << "LEHETSEGES";
    else cout << "LEHETETlEN";
}

// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu

// Tips for Getting Started: 
//   1. Use the Solution Explorer window to add/manage files
//   2. Use the Team Explorer window to connect to source control
//   3. Use the Output window to see build output and other messages
//   4. Use the Error List window to view errors
//   5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
//   6. In the future, to open this project again, go to File > Open > Project and select the .sln file
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted1ms316 KiB
2Wrong answer1ms508 KiB
subtask20/16
3Accepted1ms592 KiB
4Accepted1ms316 KiB
5Wrong answer1ms316 KiB
6Wrong answer1ms316 KiB
7Wrong answer1ms316 KiB
8Wrong answer1ms560 KiB
9Wrong answer1ms316 KiB
10Wrong answer1ms504 KiB
subtask30/14
11Accepted1ms548 KiB
12Accepted1ms316 KiB
13Wrong answer1ms316 KiB
14Wrong answer1ms316 KiB
15Wrong answer1ms316 KiB
16Wrong answer1ms388 KiB
17Wrong answer1ms316 KiB
18Wrong answer1ms316 KiB
subtask40/22
19Accepted1ms316 KiB
20Accepted1ms316 KiB
21Accepted1ms388 KiB
22Wrong answer1ms316 KiB
23Wrong answer1ms316 KiB
24Wrong answer1ms508 KiB
25Wrong answer1ms316 KiB
26Wrong answer1ms316 KiB
27Accepted1ms320 KiB
28Accepted1ms368 KiB
subtask50/28
29Accepted1ms316 KiB
30Wrong answer1ms316 KiB
31Accepted1ms592 KiB
32Accepted1ms316 KiB
33Wrong answer1ms316 KiB
34Wrong answer1ms316 KiB
35Wrong answer1ms316 KiB
36Wrong answer1ms560 KiB
37Wrong answer1ms316 KiB
38Wrong answer1ms504 KiB
39Accepted1ms548 KiB
40Accepted1ms316 KiB
41Wrong answer1ms316 KiB
42Wrong answer1ms316 KiB
43Wrong answer1ms316 KiB
44Wrong answer1ms388 KiB
45Wrong answer1ms316 KiB
46Wrong answer1ms316 KiB
47Accepted1ms316 KiB
48Accepted1ms316 KiB
49Accepted1ms388 KiB
50Wrong answer1ms316 KiB
51Wrong answer1ms316 KiB
52Wrong answer1ms508 KiB
53Wrong answer1ms316 KiB
54Wrong answer1ms316 KiB
55Accepted1ms320 KiB
56Accepted1ms368 KiB
57Accepted1ms316 KiB
58Accepted1ms316 KiB
59Accepted2ms316 KiB
60Accepted2ms508 KiB
61Accepted1ms316 KiB
62Accepted1ms508 KiB
63Wrong answer1ms316 KiB
64Accepted1ms316 KiB
65Wrong answer1ms316 KiB
66Accepted1ms316 KiB
67Wrong answer1ms316 KiB
68Wrong answer2ms524 KiB
69Accepted1ms556 KiB
70Wrong answer1ms316 KiB
71Accepted1ms316 KiB
72Wrong answer1ms316 KiB
73Accepted1ms316 KiB