When I was your age, our keyboards only had zeros and ones. While real programmers can survive with such limitations, it is obvious that kids these days will be at a complete loss when a single key on their keyboard malfunctions.
No? Prove it then. Show me how many keys you need to write a simple program. I bet even my grandmother can do better.
And while we're at that, don't get me started on the kind of memory constraints we faced. Real programmers know that every byte counts. But as a "programmer", you already knew that right? Show many how many bytes your program will need to complete a trivial task
And when you're done, GET OFF MY LAWN!
Problem Description
Given an integer 0 ≤ n ≤ 1000, print the number triangle as shown below. Sounds familiar? Good. You have no reason to fail then.
Your program has to pass all testcases for any point to be awarded
How your score is determined is dependent on the number of unique characters (excluding return carriages and new lines) contained in your source file:
Unique characters | Score |
<25 | 100 |
25 | 80 + 20 × 0.9max(0, c - 135) |
26 | 60 + 20 × 100 / c |
27 | 40 + 20 × 100 / c |
28 | 20 + 20 × 100 / c |
29 | 20 × 100 / c |
>29 | 20 × 0.9c - 95 |
Note:
c is the
total number of characters in your source file including return carriages and new lines.
You may name your source file
ans.cpp
and compile and run
scorer.cpp
as attached to score your code.
Sample Input
5
Sample Output
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5