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
le_hue_369:
20200327 02:50:06
My hint is to use strings that include "\n". AC for the first time. 

anhduc2641999:
20191223 10:30:20
Last edit: 20191223 10:30:50 

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. 

rushikeshkoli:
20170901 16:17:58
That was a great one! Solved it in nearly 10 mins. I am getting confidence now!!! I solved it using the trick of pattern 2 and little modification. 
Added by:  kuszi 
Date:  20120903 
Time limit:  1s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: ASM64 