BFTRI - Drawing Triangles with Brainf##k
Your task is just to draw triangles! seems easy(?) but only Brainf**k programming language is allowed.
Input
The first line is an integer T (0 < T < 100), denoting the number of test cases. Then, T lines follow.
For each test case, there are one character c (ASCII(32) < c < ASCII(127)) and one integer i (0 < i < 100) written in one line, separated by a space. Each line end with ASCII(10).
Output
For each test case, output triangle size i (draw triangle using character c). See example.
Example
Input: 3 & 1 @ 3 ? 5 Output: & @ @@ @@@ ? ?? ??? ???? ?????
hide comments
Jared Deckard:
2012-12-15 18:55:45
I made a couple optimization, but my time didn't change. My final solution should be approx .01s faster than the first in the T=99, each i=99 case. More and larger test cases will allow the time to reflect performance more precisely.
|
Added by: | Tjandra Satria Gunawan |
Date: | 2012-07-21 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | BF |
Resource: | Own Problem |