Lyndon's Golf Contest 1 P5 - Basic Triangle

View as PDF

Submit solution


Points: 0 (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):

Copy
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************

Scoring

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

  • if L45, you will receive the full 100 points.
  • if 46L48, you will receive 805×(L46) points.
  • if 49L, you will receive 20.19(80L) points.

Comments

There are no comments at the moment.