Submission #334457

# Submission time Handle Problem Language Result Execution time Memory
334457 2020-12-09T07:38:12 Z Gurban Red-blue table (IZhO19_stones) C++17
0 / 100
34 ms 1388 KB
#include <bits/stdc++.h>
using namespace std;

using ll = long long;

int tt;
int n,m,num;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);

	cin >> tt;
	while(tt--){
		cin >> n >> m;
		num = (n - 1) / 2;
		cout<<m+num<<'\n';
		for(int i = 1;i <= num;i++){
			for(int j = 1;j <= m;j++) cout<<"+";
			cout<<'\n';
		}
		for(int i = num+1;i <= n;i++){
			for(int j = 1;j <= m;j++) cout<<'-';
			cout<<'\n';
		}

	}
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Incorrect 1 ms 364 KB Wrong answer in test 2 1: 1 < 2
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Wrong answer in test 2 1: 1 < 2
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Incorrect 1 ms 364 KB Wrong answer in test 2 1: 1 < 2
# Verdict Execution time Memory Grader output
1 Incorrect 34 ms 1388 KB Wrong answer in test 97 21: 69 < 116
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 33 ms 1388 KB Wrong answer in test 24 24: 35 < 44
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 Wrong answer in test 2 1: 1 < 2