CPTTRN2 - Character Patterns (Act 2)
Using two characters: . (dot) and * (asterisk) print a frame-like 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 of a frame.
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
tambot:
2016-01-05 23:35:36
@kuszi, could you please show the expected output for the following input?
|
|
miki_24:
2015-11-21 08:41:15
get WA, but my Output is:
|
|
sanyameep:
2015-11-15 07:49:12
Even after the 2 line breaks and exactly the same output as the expected output, I get wrong answer as the result. Why so? |
|
bhargav431997:
2015-10-25 09:31:39
expected op
|
|
ravikumargrk:
2015-10-24 19:29:59
|
|
kuszi:
2015-10-17 22:38:21
@akay97, @This is correct, you get the "wrong answer" is for the hidden test case (sorry for the font colors not appropriate for the default colors of the new SPOJ design). |
|
akay97:
2015-10-17 20:15:34
my problem is same as gurkang...
|
|
akay97:
2015-10-17 20:13:24
*
|
|
gurkang:
2015-10-15 21:08:41
This is kind of stupid.
|
|
gupta833:
2015-10-06 19:21:21
Every time the compiler is saying "Wrong Answer".
|
Added by: | kuszi |
Date: | 2012-09-03 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |