| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1353640 | Newtonabc | Red-blue table (IZhO19_stones) | C++20 | 10 ms | 1276 KiB |
#include<bits/stdc++.h>
using namespace std;
void solve(){
int n,m; cin>>n >>m;
if(n<=m){
cout<<n+m-(n+2)/2;
cout<<"\n";
int del=(n+2)/2;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
if(i<=del) cout<<"-";
else cout<<"+";
}
cout<<"\n";
}
}
else{
cout<<n+m-(m+2)/2 <<"\n";
int del=(m+2)/2;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
if(j<=del) cout<<"+";
else cout<<"-";
}
cout<<"\n";
}
}
}
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
int t; cin>>t;
while(t--){
solve();
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
