oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

oldskool Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

oldskool.html

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 charactersScore
<25100
2580 + 20 × 0.9max(0, c - 135)
2660 + 20 × 100 / c
2740 + 20 × 100 / c
2820 + 20 × 100 / c
2920 × 100 / c
>2920 × 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

strip.gif

Tags

Syntax, Creative

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100101s32MBCustom

Attachments

Attachment Filesize Last Updated
scorer.cpp620B6 Apr 2014, 01:16:06

Judge Compile Command

g++-8 ans.cpp -o oldskool -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.