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
abdou_93:
2016-01-11 23:53:50
AC first problem by BF |
|
Ognjen Arsenijevic:
2015-03-09 21:16:38
@ Tjandra Can you recommend me a book or give me site where I can learn brainf**k? I saw some tutorials but they were really short and not very useful. |
|
Akash:
2013-06-27 17:50:01
hah..finally AC after 2 hrs of long effort :)
|
|
Ouditchya Sinha:
2013-02-23 07:36:13
@Tjandra, thank you for pointing out my mistake, this question is beyond me at the moment, I'll definitely try it again
|
|
Ouditchya Sinha:
2013-01-12 06:11:20
My code is working fine on ideone but here I'm getting TLE, please help. http://ideone.com/jQLZaY
|
|
Vikas Kushwaha:
2012-12-25 12:50:49
@Tjandra
|
|
Mostafa 36a2:
2012-12-21 20:04:10
Thanks For The Ideas ...
|
|
(Tjandra Satria Gunawan)(曾毅昆):
2012-12-15 18:55:45
Info: Changed cluster to 3GHz and mem limit to 1536 MB. Now all user that got AC in this problem AC with time=0.00sec. :-)
|
|
Aditya Pande:
2012-12-15 18:55:45
real good problem |
|
Jared Deckard:
2012-12-15 18:55:45
Maybe < and > are more costly than I thought. I ran both again, now my first submission gets .04s and the optimized one gets .06s :\
|
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 |