Homework

Please don't include any extra libraries in your homework. We already included all necessary libraries in the skeleton code.

Submission due date: 5 Oct 2024(Sat) 23:59

Submission method: ZINC

Rename your file as main.c Then directly compress to zip and submit the zip file into the appropriate assignment of ZINC. You can name your zip file anything you want.

You have unlimited attempts to upload your code and test on ZINC. However, ZINC might need a long time to grade your work when the deadline is near. So, you are recommended to submit your work early.

There are hidden test cases for all homework assignments. You should find your own test cases to test instead of relying on the test cases on ZINC.

If you run into any problems with ZINC, feel free to reach out to our team members on Discord.

Expectation

We expect everyone to complete all normal tasks. You can ask our team members to teach you the normal tasks if you have no idea how to do them.

We expect only a few of you to finish all advanced tasks, but you should still try them because those who could not get any score in advanced tasks will have a high chance of NOT getting into the next phase.

How to use test cases ?

method 1: redirect mode

  1. Download the zip file

  2. Compile your main.c

g++ main.c -o main
  1. redirect input file to the executable program

In MasOS or Linux

(using Task 1 test case 1 as an example)
./main < T1_input_1.txt > T1_output_1.txt

In Windows

Get-Content T1_input_1.txt | ./main > T1_output_1.txt

After that, you can compare the output file with vs code or online code difference checker https://www.diffchecker.com/

method 2: interactive mode

You follow the input.txt file and input them one by one.

After that, you may use an online code difference checker as well.

WARNING😈: THERE ARE MANY HIDDEN TEST CASES THAT WE WILL NOT SHOW TO YOU

Last updated