Submit | All submissions | Best solutions | Back to list |
CPTTRN1 - Character Patterns (Act 1) |
Using two characters: . (dot) and * (asterisk) print a chessboard-like pattern. The first character printed should be * (asterisk).
Input
You are given t < 100 - 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 pattern (l, c < 100).
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: * . * *.*. .*.* *.*. .*.* *.*.* .*.*.
Added by: | kuszi |
Date: | 2012-09-03 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |
hide comments
|
|||||||||
2016-07-16 13:42:17 liuxueyang
practice common lisp language. 1AC. ;-) Anyone use common lisp? |
|||||||||
2016-05-30 09:19:06
ideone.com compiles and runs my program successfully but the judge gives "wrong answer"...anyone out there to help? |
|||||||||
2016-04-29 16:39:58
Does I,e means each digit in 2 digit integer or they are different inputs? If no how can I take different input in same line! Last edit: 2016-04-29 17:18:28 |
|||||||||
2016-03-21 23:03:04
Please don't tell, that second output is bad. It might look like this, but output have a clear regular property. |
|||||||||
2016-03-18 16:10:28
i don't know how to get different columns. |
|||||||||
2016-03-09 16:55:50
Is the input in integer or string? Does line integer and column integer has a space in between? |
|||||||||
2016-02-09 18:01:17
Well, I did it so it works. My advice about formating - make sure that every test has the one empty line between, and put one empty line before your output (after input). |
|||||||||
2016-01-27 10:03:07
i cant understand what is fault in my code please reply me the fault |
|||||||||
2016-01-25 16:29:10 Devashish Mathur
tutorials |
|||||||||
2016-01-18 09:23:10
I get it. In the first, input, we output nothing. The output makes it look like we needed to output only a *. Last edit: 2016-01-18 09:26:20 |