# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
498869 | 2021-12-26T13:48:46 Z | yahyobekabdunazarov | Red-blue table (IZhO19_stones) | C++17 | 22 ms | 1272 KB |
#include <bits/stdc++.h> typedef long long ll; using namespace std; void solve(){ int n, m; cin >> n >> m; int a[n][m]; for(int i=0; i<n; i++){ for(int j=0; j<m; j++){ if(j>ceil(m/2)){ cout << "-"; } else{ cout << "+"; } } cout << "\n"; } } int main() { ios::sync_with_stdio(0); cin.tie(0); int t; cin >> t; while(t--){ solve(); } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Expected integer, but "++-" found |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 332 KB | Expected integer, but "+++++++++++++++++++++++----------------------" found |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Expected integer, but "++-" found |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 22 ms | 1272 KB | Expected integer, but "+++++++++++----------" found |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 20 ms | 1228 KB | Expected integer, but "+++++++++++++-----------" found |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Expected integer, but "++-" found |
2 | Halted | 0 ms | 0 KB | - |