CPTTRN3  Character Patterns (Act 3)
Using two characters: . (dot) and * (asterisk) print a gridlike pattern.
Input
You are given t  the number of test cases and for each of the test cases two positive integers: l  the number of lines and c  the number of columns in the grid. Each square of the grid is of the same size and filled with 4 dots (see the example below).
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 4 4 2 5 Output: **** *..* *..* **** *..* *..* **** *..* *..* **** ************* *..*..*..*..* *..*..*..*..* ************* *..*..*..*..* *..*..*..*..* ************* *..*..*..*..* *..*..*..*..* ************* *..*..*..*..* *..*..*..*..* ************* **************** *..*..*..*..*..* *..*..*..*..*..* **************** *..*..*..*..*..* *..*..*..*..*..* ****************
hide comments
tan_isha:
20210512 13:23:19
the logic for the number of lines and columns :


rahul7777:
20200617 07:03:49
in this no 3 is lucky use it and get AC!


le_hue_369:
20200327 02:50:06
My hint is to use strings that include "\n". AC for the first time. 

rohan811:
20190815 05:32:52
simple problem... check the pattern carefully..!!


vishesh_2308:
20190612 09:04:52
Very easy question.


shiva_dragneel:
20180822 11:21:57
How to reduce the memory space? I always have 28M in python but some users reduce it to 9.8M. How? 

x_coder33:
20180807 12:12:35
It's easy problem, I tried many times but at last i knew the trick, its a little math trick, take a deep lock into the pattern and you will guess it 

aquib_ansari:
20180623 15:40:54
Use this simple logic to calculate the total number of lines and columns :


lohithsai:
20171227 13:26:03
O(1) solution for this problem reply me asap,thanks in advance


sai_sravanth09:
20171003 11:23:30
I need help. I did the program and the output is correct each time I run the program. But my solution is not getting excepted. 
Added by:  kuszi 
Date:  20120903 
Time limit:  1s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: ASM64 