# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
167950 | 2019-12-11T02:11:45 Z | YottaByte | Red-blue table (IZhO19_stones) | C++14 | 46 ms | 1352 KB |
#include <iostream> using namespace std; #define ll long long #define sz(x) (int)x.size() #define pii pair < int, int > #define endl "\n" #define METH ios::sync_with_stdio(0); cin.tie(0); #define BEGIN cout << "BEGIN" << endl; #define END cout << "END" << endl; const int mod = 1e9 + 7; /// ANOTHER HASH MOD: 228228227 const int prime = 29; /// ANOTHER HASH PRIME: 997 const int INF = ((long long) 0xCAFEBABE - 1e9 - 4e8); int n, m; inline void purify() { } inline void precalc() { } inline void read() { scanf("%d %d", &n, &m); } inline void solve() { cout << (n - 1) / 2 + m << endl; for (int i = 1; i <= n; i++) { for (int j = 1; j <= m; j++) { if (i <= (n - 1) / 2) { if (j <= m / 2 + 1) { cout << '+'; continue; } } cout << '-'; } cout << endl; } } int main() { int t; scanf("%d", &t); //precalc(); while (t--) { //purify(); read(); solve(); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Incorrect | 2 ms | 256 KB | Wrong answer in test 2 1: 1 < 2 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 376 KB | Wrong answer in test 2 1: 1 < 2 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Incorrect | 2 ms | 256 KB | Wrong answer in test 2 1: 1 < 2 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 44 ms | 1352 KB | Wrong answer in test 97 21: 69 < 116 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 46 ms | 1272 KB | Wrong answer in test 24 24: 35 < 44 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Incorrect | 2 ms | 256 KB | Wrong answer in test 2 1: 1 < 2 |