#include <bits/stdc++.h>
using namespace std;

void solve()
{
  int x, r, b, test;
  cin >> x >> r >> b;
  while (true)
  {
    if (b == 0)
    {
      for (int i = 0; i < r; i++)
      {
        cout << 'R';
      }
      cout << endl;
      return;
    }
    if (r == 0)
    {

      cout << 'R';

      cout << endl;
      return;
    }
    test = r / (b + 1);
    for (int i = 0; i < test; i++)
    {
      cout << 'R';
    }
    cout << 'B';
    r -= test;
    b--;
  }
}

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);

  int t;
  cin >> t;

  while (t--)
  {
    solve();
  }

  return 0;
}