# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
334058 | 2020-12-08T08:38:11 Z | boykut | Red-blue table (IZhO19_stones) | C++14 | 35 ms | 1388 KB |
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int t; cin >> t; while (t--) { int n, m, flag = 0; cin >> n >> m; int a[n][m]; if (n > m) { cout << n + m / 2 << '\n'; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) if (j & 1) cout << '-'; else cout << '+'; cout << '\n'; } } else { cout << m + n / 2 << '\n'; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) if (i & 1) cout << '+'; else cout << '-'; cout << '\n'; } } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Incorrect | 1 ms | 364 KB | in the table A+B is not equal to 5 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 364 KB | in the table A+B is not equal to 21 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Incorrect | 1 ms | 364 KB | in the table A+B is not equal to 5 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 34 ms | 1388 KB | Wrong answer in test 97 21: 107 < 116 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 35 ms | 1388 KB | in the table A+B is not equal to 36 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Incorrect | 1 ms | 364 KB | in the table A+B is not equal to 5 |