Submission #1010548

# Submission time Handle Problem Language Result Execution time Memory
1010548 2024-06-29T08:00:07 Z LucaIlie Red-blue table (IZhO19_stones) C++17
0 / 100
22 ms 1360 KB
#include <bits/stdc++.h>

using namespace std;

int main() {
    int t;

    cin >> t;
    for ( ; t > 0; t-- ) {
        int n, m;

        cin >> n >> m;

        cout << n + m - 2 << "\n";
        for ( int l = 0; l < n; l++ ) {
            for ( int c = 0; c < m; c++ ) {
                if ( l == n - 1 )
                    cout << "-";
                else {
                    if ( l < n / 2 ) {
                        if ( c <= m / 2 )
                            cout << '+';
                        else
                            cout << "-";
                    } else {
                        if ( c < m / 2 )
                            cout << "-";
                        else
                            cout << "+";
                    }
                }
            }
            cout << "\n";
        }
    }

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB in the table A+B is not equal to 2
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Wrong answer in test 2 1: 1 < 2
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB in the table A+B is not equal to 2
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 22 ms 1284 KB in the table A+B is not equal to 76
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 1360 KB in the table A+B is not equal to 46
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB in the table A+B is not equal to 2
2 Halted 0 ms 0 KB -