# Simple Programming Problems

Public submissions
Source code of every submission to this problem in this contest will be visible for everyone since 2013-08-24 14:48:58.
Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

# 12185. Character Patterns (Act 5)

## Problem code: CPTTRN5

Using two characters: . (dot) and * (asterisk) print a grid-like pattern. The grid will have l lines, c columns, and each square shaped element of the grid will have the height and width equal to s.

Moreover, each of the grid elements will have a diagonal. The diagonal of the first square in the first line of the grid is directed towards down and right corner - use the \ (backslash) character to print it; while the next diagonal will be directed towards upper right corner - use the / (slash) character to print it. Print the successive diagonals alternately (please consult the example below).

### Input

You are given t - the number of test cases and for each of the test case three positive integers: l - the number of lines, c - the number of columns in the grid and s - the size of the single square shaped element.

### Output

For each of the test cases output the requested pattern (please have a look at the example). Use one line break in between successive patterns.

### Example

```Input:
3
3 1 2
4 4 1
2 5 2

Output:
****
*\.*
*.\*
****
*./*
*/.*
****
*\.*
*.\*
****

*********
*\*/*\*/*
*********
*/*\*/*\*
*********
*\*/*\*/*
*********
*/*\*/*\*
*********

****************
*\.*./*\.*./*\.*
*.\*/.*.\*/.*.\*
****************
*./*\.*./*\.*./*
*/.*.\*/.*.\*/.*
****************
```

 Added by: kuszi Date: 2012-09-04 Time limit: 1s Source limit: 50000B Memory limit: 1536MB Cluster: Cube (Intel Pentium G860 3GHz) Languages: All except: SCM chicken Public source code since: 2013-08-24 14:48:58