MIPS | Malaysian Informatics And Programming Society

Contest Format

Contest Structure

Problem Format

Structure

Submission

Sample Problem

Given a list of numbers a_1, a_2, ..., a_n. Output the sum of all numbers.

Input format:

n
a_1 a_2 ... a_n

Output format:

Output the sum of all numbers on one line.

Sample input:

100
22 39 68 90 22 53 80 36 16 44 48 29 13 24 51 69 99 65 58 41 68 57 66 5 44 10 23 1 24 64 29 85 6 22 51 14 98 93 71 77 100 92 62 69 76 83 19 68 75 40 16 20 47 95 60 71 34 11 80 90 14 39 69 71 18 64 63 89 57 88 52 2 71 2 71 20 12 49 97 33 43 7 30 37 8 83 9 68 96 72 99 21 53 68 25 71 2 31 65 69

Sample output:

5021

Past MCC problems are available here.

Contest Regulations

Categories

There are four categories in MCC. Contestants should join the first category that applies to them:

The Open category is open to everyone.

The Junior, Intermediate, and Senior categories are only open to those who are eligible for IOI in the following year (with some conditions). Specifically, they are open to those who:

In particular:

See the IOI regulations for eligibility information (section S2.5 as of writing).

Only participants in the Junior, Intermediate, and Senior categories are eligible for IOI selection. The organisers reserve the right to make the final decision on IOI eligibility. Eligibility for IOI implies eligibility for MCC, but not vice versa.

Awards and Certificates

There will be Gold, Silver, and Bronze awards for each category. All contestants will work on the same problems, but award cutoffs will be different for each category.

All participants who made at least one submission (which may be incorrect) will receive a participation certificate (in addition to the award if they receive one).

We will be giving out digital certificates instead of physical ones.

Beyond MCC

MCC is the preliminary selection process of a year-long program to identify and train the top computing talents in Malaysian schools for the International Olympiad in Informatics (IOI) and other informatics competitions (e.g. APIO).

Top scorers in MCC will be:

The top scorers in MCO will be invited to:

After the training camps and selection tests, four students will be selected to represent Malaysia in the IOI. We may also select students to represent Malaysia in more informatics competitions (e.g. European Girls’ Olympiad in Informatics (EGOI) in 2025).

FAQs

If I participate, will I always get a certificate?

Yes, but you must make at least one submission (which may be incorrect).

Each participant that made a submission will receive a participation certificate regardless of performance. Each award winner will also receive an award certificate in addition to the participation certificate.

My program outputs the correct answer for the sample input, why is my submission for other inputs incorrect?

Check your logic and code – your program might work for the sample input, but not for the other test cases.

The input is too large, it takes too long to paste the input into the terminal

You should paste the input into a file and have your code read from it. See the next question for more details.

If it still takes too long, try using the built-in text editor of your computer (instead of, for example, VS Code):

The output is too large, the terminal cuts the output off

You should output into a file and copy the file contents. If you run [command] in the terminal to run your code and your code outputs to standard output, you can do [command] > output.txt to write to output.txt.

If you want to programmatically handle file input/output:

In C/C++, a short way to read from and write to a file is:

freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);

In Python, you can do

with open('input.txt', "r", encoding="utf-8") as f:
  ...
with open('output.txt', "w", encoding="utf-8") as f:
  f.write("output")

My computer is not fast enough, the input is too large

If pasting the input is slow, see two questions before this.

Otherwise, all inputs are solvable by an ordinary computer in ~10 seconds. The inputs are intentionally large to force you to find an efficient algorithm.

Notably, we verify that all problems are solvable on https://studio.firebase.google.com/. You can import the repo https://github.com/veehz/ioi-nix-setup as a start.

Most problems should also be solvable on https://ide.usaco.guide except some problems may take a bit more than 5s and some inputs are too large to be uploaded to the site.

If the answer is 2 3, will the outputs differing only in whitespace be accepted (e.g. _2___3__, where _ are spaces)?

To be lenient, we often ignore whitespace differences (e.g. spaces, newlines). However, we do not guarantee that whitespace differences are always ignored.

If the answer is 2 3000, will the outputs 2,3000, 2-3000, 2.0 3.0, or 2 3e3 be accepted?

No. Please follow the specified output format correctly. Unless otherwise specified, floating point numbers (decimal or scientific notation) are not accepted when integers are expected.