Lyndon's Golf Contest 1 P5 - Basic Triangle

View as PDF

Submit solution


Points: 1 (partial)
Time limit: 2.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
C, C++

It's simple. Just print the triangle.

Note: You may only submit to this problem in C/C++.

Input Specification

There is no input.

Output Specification

Output the 15 by 15 triangle below (with a trailing newline):

*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************

Scoring

Your score will be computed based on the length of your source code, the shorter the better. For an L-byte program,

  • if L \le 45, you will receive the full 100 points.
  • if 46 \le L \le 48, you will receive 80-5 \times (L-46) points.
  • if 49 \le L, you will receive \lfloor 2^{0.19(80-L)} \rfloor points.

Comments

There are no comments at the moment.