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.

HS10PTRN - ASCII Pattern

Your task is to print a grid-like pattern. Use an * (asterisk) for the border, for the horizontal and for vertical lines of the grid, but fill the interior of each grid square with . (dots). The grid will have w>0 rows and k>0 columns (wk squares), and each square will have the same size, equal to s>0.

In addition, each of the squares should have a diagonal. The diagonal of the top left square will be backslash like (use \ character to print it), and the next one to the right will be slash-like ( use / character to print it). The following squares should be printed alternately (please refer to the example below).

Input data specification

First, you are given an integer t, the number of tests, and for each of the tests three numbers: w, k and s, denoting the number of rows, the number of columns and the size of squares, respectively.

Output data specification

Print the required pattern for each of the test cases. Please separate successive cases with an empty line.

Example

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

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

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

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

Scoring

By solving this problem you score 10 points.


Added by:kuszi
Date:2011-03-25
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ADA95 ASM32 BASH BF C CSHARP C++ 4.3.2 CPP C99 CLPS CLOJURE LISP sbcl LISP clisp D ERL FSHARP FORTRAN GO HASK ICON ICK JAVA JS-RHINO LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PERL6 PHP PIKE PRLG-swi PYTHON PYTHON3 RUBY SCALA SCM guile SCM qobi ST TCL WHITESPACE
Resource:High School Programming League 2010/11

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.