# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
691506 | 2023-01-31T07:59:06 Z | White | Red-blue table (IZhO19_stones) | C++14 | 22 ms | 1276 KB |
#pragma GCC optimzie ("O3") #include <bits/stdc++.h> #define endl "\n" using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int n,m,T; cin>>T; for(int i=0;i<T;i++){ cin>>m>>n; if(n>m){ cout<<n+(m-1)/2<<endl; for(int y=0;y<m;y++){ for(int x=0;x<n;x++){ if(y<(m+1)/2)cout<<"-"; else cout<<"+"; } cout<<endl; } }else{ cout<<m+(n-1)/2<<endl; for(int y=0;y<m;y++){ for(int x=0;x<n;x++){ if(x<(n+1)/2)cout<<"+"; else cout<<"-"; } cout<<endl; } } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | in the table A+B is not equal to 4 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 340 KB | in the table A+B is not equal to 20 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | in the table A+B is not equal to 4 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 20 ms | 1276 KB | Wrong answer in test 97 21: 107 < 116 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 22 ms | 1212 KB | in the table A+B is not equal to 35 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | in the table A+B is not equal to 4 |
3 | Halted | 0 ms | 0 KB | - |