cms icon indicating copy to clipboard operation
cms copied to clipboard

Make subtask numbering/naming more flexible

Open prandla opened this issue 6 months ago • 6 comments

https://github.com/ioi-2024/cms/commit/f918b0f09fbe1a584eae4689e8d43ec36937c329

i can't tell at a glance, but if this is (on the user's side) only relevant for the section headings in cws / column names in rws, then maybe it'd make sense to generalize this to allow specifying custom names for subtasks. once you get to tasks with 6 or 7 subtasks, referring to them by the actual constraints is more clear than just a number, in my opinion.

prandla avatar Jun 06 '25 01:06 prandla

I don't think we want to expose subtask names to contestants; or at least, it's a bigger change that probably needs some discussion with (I)SC for IOI.

Zero-based subtask numbers we should OTOH do.

veluca93 avatar Jun 06 '25 08:06 veluca93

What about presenting the subtask as "Sample subtask" instead of "Subtask 0"?

gollux avatar Jun 07 '25 19:06 gollux

What about presenting the subtask as "Sample subtask" instead of "Subtask 0"?

That seems reasonable enough to me.

veluca93 avatar Jun 07 '25 21:06 veluca93

What about presenting the subtask as "Sample subtask" instead of "Subtask 0"?

In that case i think it should be made toggleable somewhere. i wouldn't want to assume that every task always has a sample subtask.

re: named subtasks:

I don't think we want to expose subtask names to contestants; or at least, it's a bigger change that probably needs some discussion with (I)SC for IOI.

i don't see how this exposes new information. If ISC wants they can just name their subtasks the strings "subtask 1", "subtask 2", etc.

prandla avatar Jun 07 '25 21:06 prandla

IMO that's sort of implied by numbering the subtask "0"...

Given the nontrivial amount of design choices, I propose we start by doing what IOI did, and then discuss on how to make this more flexible.

veluca93 avatar Jun 07 '25 21:06 veluca93

oh, i might have been unclear. i would like there to be a toggle for whether subtask 0 (or "sample subtask") exists or not. when false, numbering should still start from 1. in some cases (output-only tasks come to mind), having sample inputs that are graded does not make sense.

prandla avatar Jun 07 '25 22:06 prandla