제출 #1126734

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
11267342024-12-15 01:59:12koukirocksRed-blue table (IZhO19_stones)C++20
0 / 100
19 ms1348 KiB
#include<bits/stdc++.h>
#define speed ios_base::sync_with_stdio(0);cin.tie(0)
using namespace std;
template<typename T>
using vvector = vector<vector<T>>;
void solve() {
int n,m;
cin>>n>>m;
if (min(n,m)==1) {
if (n==1) {
cout<<m<<"\n";
for (int j=1;j<=m;j++) cout<<"-";
cout<<"\n";
} else {
cout<<n<<"\n";
for (int i=1;i<=n;i++) cout<<"+\n";
}
} else if (min(n,m)==2) {
if (n==2) {
cout<<m<<"\n";
for (int i=1;i<=n;i++) {
for (int j=1;j<=m;j++) cout<<"-";
cout<<"\n";
}
} else {
cout<<n<<"\n";
for (int i=1;i<=n;i++) {
for (int j=1;j<=m;j++) cout<<"+";
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...