Submission #498216

#TimeUsernameProblemLanguageResultExecution timeMemory
498216sireanu_vladRed-blue table (IZhO19_stones)C++14
0 / 100
4 ms1304 KiB
#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 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...