You are not logged in. Please login at www.codechef.com to post your questions!

×

How to upload partially graded problem on CodeChef

I wanted to add partially graded problem (subtask type/ IOI styled problems) on CodeChef. How should I do that.

asked 10 Oct '14, 01:55

surajmsharma's gravatar image

1★surajmsharma
152612
accept rate: 0%


Only users who have problem adding access on CodeChef will be able to do this.

The new master judge can be found here: http://campus.codechef.com/files/judge/1003/. You need to select this while adding the problem.

The rules will be slightly different than that for other problems. We have to select the following while editing a problem:

Problem type: classic
Assessment type: subtask type
Master judge for multiple datasets: 1003 (Generic Subtask Partial Judge).

The next most important part is to use the following setting: Auxiliary data passed to masterjudge: Here, we first need to provide the number of subtasks, followed by the score of each subtask which is followed by the mapping of each test case (in the order of Problem test sequence) to the subtask.

Let me give you an example: Say we have 3 sub-tasks and eight test files. The entry in the Problem test sequence is: #0 #1 #2 #3 #4 #5 #6 #7

What this means is that first #0 test case will be evaluated then #1, then #2 and so on, until #7 is evaluated.

And let us say that the mapping of the test files to sub tasks is this:

  #0 - 1
  #1 - 1
  #2 - 1
  #3 - 2
  #4 - 2
  #5 - 3
  #6 - 3
  #7 - 3

Now say we want to give the following score for each subtask:

subtask 1 = 40, subtask 2 = 25, subtask 3 = 35.

So what we need to enter in the "Auxiliary data passed to masterjudge" field will be: 3 40 25 35 1 1 1 2 2 3 3 3.

NOTE: There can be minimum 1 subtask and maximum 16 substaks.

With this setting, we will achieve what we wanted. Also you may view the status of each test file at this link: http://campus.codechef.com/error/solution-id.

Hope you got your answer :)

Happy Coding!

Regards
Team CodeChef

link

answered 10 Oct '14, 02:01

admin's gravatar image

0★admin ♦♦
17.6k347489517
accept rate: 36%

edited 09 Jun '17, 12:50

Hello, I am trying to set problems for a personal contest with subtask scoring property. I am following the exact format given above but the submission is showing a question mark at the status and a cross sign indicating wrong answer is appearing. However the same test files are working with a binary type scoring contest. Please help.

link

answered 08 Nov '14, 04:50

saumyajit_dey's gravatar image

2★saumyajit_dey
7519
accept rate: 0%

You can contact codechef admins. You can even contact me on praveen@codechef.com

(08 Nov '14, 09:08) dpraveen ♦♦4★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×191
×43

question asked: 10 Oct '14, 01:55

question was seen: 6,188 times

last updated: 09 Jun '17, 12:50