Submission #498216

# Submission time Handle Problem Language Result Execution time Memory
498216 2021-12-24T15:49:15 Z sireanu_vlad Red-blue table (IZhO19_stones) C++14
0 / 100
4 ms 1304 KB
#include <iostream>
#include <cstring>
using namespace std;

void solve(int n, int m)
{
	cout << (m + (n-1)/2) << '\n';
	for(int i = 0; i < n; ++i)
		cout << (i <= n/2 ? string(m, '-') : string(m, '+')) << '\n';
}

int main()
{
	int t, n, m;
	cin >> t;
	while(t--)
	{
		cin >> n >> m;
		solve(n, m);
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 292 KB Wrong answer in test 2 1: 1 < 2
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Wrong answer in test 2 1: 1 < 2
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 292 KB Wrong answer in test 2 1: 1 < 2
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 1304 KB Wrong answer in test 97 21: 69 < 116
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 1188 KB Wrong answer in test 24 24: 35 < 44
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 292 KB Wrong answer in test 2 1: 1 < 2