Triangle ASCII art
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Draw a right triangle in ASCII art with the base width equaling the number on STDIN and the height and hypotenuse equal to the base+1.
Separate triangles with 32 '*'s
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
1
3
2
4
6
7
5
8
9
0
10
11
16
26
24
Sample output:
|\
|_\
********************************
|\
| \
| \
|___\
********************************
|\
| \
|__\
********************************
|\
| \
| \
| \
|____\
********************************
|\
| \
| \
| \
| \
| \
|______\
********************************
|\
| \
| \
| \
| \
| \
| \
|_______\
********************************
|\
| \
| \
| \
| \
|_____\
********************************
|\
| \
| \
| \
| \
| \
| \
| \
|________\
********************************
|\
| \
| \
| \
| \
| \
| \
| \
| \
|_________\
********************************
|\
********************************
|\
| \
| \
| \
| \
| \
| \
| \
| \
| \
|__________\
********************************
|\
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
|___________\
********************************
|\
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
|________________\
********************************
|\
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
|__________________________\
********************************
|\
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
|________________________\
********************************
Sample input:_
30
Sample output:
|\
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
| \
|______________________________\
********************************
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 68 | 0.0242 | 2012/06/09 13:31:25 | 0B / 24B / 43B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 58 | 0.0339 | 2012/06/09 11:55:05 | 0B / 15B / 41B |
2 | nfouille | 60 | 0.0330 | 2012/06/11 18:51:33 | 0B / ?B / ?B |
3 | Hem | 62 | 0.0508 | 2012/06/09 17:17:15 | 0B / 21B / 39B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | twobit | 77 | 0.0908 | 2012/06/09 19:55:17 | 0B / 36B / 39B |
2 | clock | 77 | 0.0601 | 2012/06/09 20:16:32 | 0B / 36B / 39B |
3 | hallvabo | 77 | 0.0806 | 2012/06/09 23:03:46 | 0B / 36B / 39B |
4 | Hendrik | 79 | 0.0450 | 2012/06/09 22:42:33 | 0B / 40B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 102 | 0.0904 | 2012/06/10 15:35:09 | 7B / 44B / 51B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | youz | 87 | 0.2597 | 2012/06/11 12:32:32 | 0B / 38B / 45B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 126 | 0.3835 | 2012/06/09 13:51:44 | 0B / 82B / 39B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 0mg | 92 | 0.0560 | 2012/06/11 20:55:24 | 0B / 35B / 55B |
2 | nn | 94 | 0.0462 | 2012/06/11 01:52:53 | 0B / 43B / 50B |
3 | clock | 98 | 0.0448 | 2012/06/10 14:21:52 | 0B / 43B / 54B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Hendrik | 105 | 0.0377 | 2012/06/09 17:13:40 | 0B / 55B / 43B |
2 | clock | 105 | 0.0239 | 2012/06/09 17:28:23 | 0B / 55B / 43B |
3 | twobit | 105 | 0.0322 | 2012/06/11 07:48:06 | 0B / 56B / 41B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 99 | 0.0230 | 2012/06/10 13:16:13 | 0B / 47B / 45B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 96 | 0.0287 | 2012/06/09 18:17:14 | 0B / 51B / 45B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee(av) | 45 | 0.0085 | 2012/08/09 06:08:43 | 0B / 9B / 36B |
2 | av | 57 | 0.0192 | 2012/08/02 22:51:18 | 0B / 8B / 47B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | smkt | 153 | 0.0320 | 2012/06/10 05:36:37 | 0B / 72B / 80B |
2 | fill | 130 | 0.0270 | 2012/06/14 14:48:44 | 0B / 72B / 58B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | henkma | 98 | 0.0383 | 2012/06/10 22:42:32 | 0B / 41B / 48B |
2 | Hendrik | 100 | 0.0352 | 2012/06/09 18:58:01 | 0B / 40B / 55B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 116 | 0.2660 | 2012/06/09 19:15:48 | 0B / 60B / 52B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 112 | 0.3502 | 2012/06/09 15:10:47 | 0B / 48B / 57B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 38 | 0.0783 | 2012/06/11 08:52:47 | 0B / 4B / 32B |
2 | nooodl | 39 | 0.0532 | 2012/06/11 07:00:25 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 43 | 0.1008 | 2012/06/12 08:03:22 | 5B / 20B / 16B |
2 | nn | 47 | 0.0729 | 2012/06/09 16:58:40 | 5B / 20B / 18B |
3 | pla | 54 | 0.0856 | 2012/06/12 01:42:00 | 4B / 28B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 85 | 2.3152 | 2012/06/10 15:58:12 | 0B / 49B / 32B |
2 | teebee | 86 | 2.5770 | 2012/06/09 21:23:41 | 0B / 50B / 33B |
3 | nn | 86 | 2.4413 | 2012/06/09 22:17:29 | 0B / 42B / 40B |
4 | clock | 84 | 2.3876 | 2012/06/12 11:03:42 | 0B / 49B / 32B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | GolfScript | clock | 38 | 10000 |
2 | Vim | clock | 43 | 8837 |
3 | K | teebee(av) | 45 | 8444 |
4 | Perl | teebee | 58 | 6551 |
5 | J | I., S. | 58 | 6551 |
6 | Ruby | clock | 68 | 5588 |
7 | Python | twobit | 77 | 4935 |
8 | Groovy | clock | 84 | 4523 |
9 | Common LISP | youz | 87 | 4367 |
10 | JavaScript | 0mg | 92 | 4130 |
11 | PARI/GP | clock | 96 | 3958 |
12 | Haskell | henkma | 98 | 3877 |
13 | Icon | clock | 99 | 3838 |
14 | PHP | clock | 102 | 3725 |
15 | Lua | Hendrik | 105 | 3619 |
16 | R | pooq | 112 | 3392 |
17 | Maxima | pooq | 116 | 3275 |
18 | Io | pooq | 126 | 3015 |
19 | C | fill | 130 | 2923 |
return to the top page