Travel Round the Grid
题号:NC237466
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld

题目描述

Little G lives in the Grid Country. The Grid Country can be regarded as  points, the top left is  and the bottom right is , and Little G lives in .

One day, Little G wants to travel round the country for  days. Every day, Little G can move up, down, left or right one step. More formally,  if Little G move up,  if Little G move down,  if Little G move left,  if Little G move right.

After -days travel, Little G must return home, the point  (but Little G doesn't want to return home before the end of the -days travel). Also, Little G don't want to visit any point twice and Little G can't move out of the country.

Please design a travel route for Little G. The travel route is a string of length , consists of only ‘U’,‘D’,‘L’,‘R’, which means move up, down, left or right on this day.

输入描述:

The first line contains a single integer  - the number of test cases.

Each of the next  lines contains five integers  

It is guaranteed their exist a valid route for each test case, and .

输出描述:

For each test case, output a valid travel route.
示例1

输入

复制
3
2 2 1 1 2
2 3 2 2 4
3 3 1 1 8

输出

复制
RL
URDL
DDRURULL