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
|
|||||||||
2024-02-14 13:51:25
Took me a while to figure it out but was fun! |
|||||||||
2023-04-20 08:33:37
i put the new forgis on the jeep Last edit: 2023-04-20 08:34:07 |
|||||||||
2023-01-11 11:00:27
If ur struggling its obviously a skill issue. Pr check, earnings check, areana check. |
|||||||||
2023-01-11 10:56:12
this task is pretty easy, for all of you that are still struggling you are just bad |
|||||||||
2022-12-11 11:14:57
i am so stupid |
|||||||||
2022-08-12 00:42:46
this is labeled "basic" but i cant even do it , guess im a noob. |
|||||||||
2021-12-29 07:33:33
Interesting! Last edit: 2021-12-29 07:34:23 |
|||||||||
2021-09-17 21:27:35
also how do you solve this problem in c++ you need to enter 1 not blank! |
|||||||||
2021-08-12 15:51:17
is it just me who is unable to do even these basic problems |
|||||||||
2021-07-10 12:18:57
i dont know how to start |