Lyndon's Golf Contest 1 P5 - Basic Triangle

View as PDF

Submit solution

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

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):



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.


There are no comments at the moment.