Submission #1010548

#TimeUsernameProblemLanguageResultExecution timeMemory
1010548LucaIlieRed-blue table (IZhO19_stones)C++17
0 / 100
22 ms1360 KiB
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; for ( ; t > 0; t-- ) { int n, m; cin >> n >> m; cout << n + m - 2 << "\n"; for ( int l = 0; l < n; l++ ) { for ( int c = 0; c < m; c++ ) { if ( l == n - 1 ) cout << "-"; else { if ( l < n / 2 ) { if ( c <= m / 2 ) cout << '+'; else cout << "-"; } else { if ( c < m / 2 ) cout << "-"; else cout << "+"; } } } cout << "\n"; } } return 0; }
#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...