Submission #1105571

# Submission time Handle Problem Language Result Execution time Memory
1105571 2024-10-26T18:26:43 Z ElayV13 Red-blue table (IZhO19_stones) C++17
0 / 100
50 ms 1464 KB
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define int long long
#define ld long double
#define FOR(T) for(int i = 1;i <= T;i++) solve();
#define READ(a) for(int i = 0;i < a.size();i++) cin >> a[i];
#define NTL ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

const int INF = 1e18;
const int sz = 1e6 + 5;
const int mod = 1e9 + 7;

void solve(){
   int n , m;
   cin >> n >> m;
   char a[n][m];
   for(int i = 0;i < n;i++){
      for(int j = 0;j < m;j++){
         a[i][j] = '+';
      }
   }
   a[0][m / 2] = '_';
   for(int i = 0;i < n;i++)
   {
      for(int j = 0;j < m;j++)
      {
         cout << a[i][j];
      }
      cout << endl;
   }
}

signed main(){
  NTL;
  int T = 1;
  cin >> T;
  FOR(T);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Expected integer, but "+_+" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 336 KB Expected integer, but "++++++++++++++++++++++_++++++++++++++++++++++" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Expected integer, but "+_+" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 50 ms 1464 KB Expected integer, but "++++++++++_++++++++++" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 39 ms 1356 KB Expected integer, but "++++++++++++_+++++++++++" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Expected integer, but "+_+" found
2 Halted 0 ms 0 KB -