Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@deboer-tim
Copy link
Collaborator

@deboer-tim deboer-tim commented Aug 1, 2025

Adds a new optional property to judgement types, 'simplified_judgement_type_id'. If this is set, any judgements with this type are changed to the simplified judgement type for other teams or anyone who is unauthenticated. (i.e. you can see the detail on your judgements, but not for other teams)

To try this out, set up a contest with a bunch of submissions and judgements, and at least one team account. Create a judgement-types.json in the contest root by capturing the current output of /judgement-types (or just create the content manually). Then add the new property to some of the judgements, e.g.:

  [{"id":"OLE","name":"output limit","penalty":true,"solved":false,"simplified_judgement_type_id":"FAIL"},
  {"id":"PE","name":"presentation error","penalty":true,"solved":false,"simplified_judgement_type_id":"FAIL"},
  {"id":"WA","name":"wrong answer","penalty":true,"solved":false,"simplified_judgement_type_id":"FAIL"}]

The id can point to one of the existing judgement types, or you can create a new one for this purpose, e.g.:

  [{"id":"FAIL","name":"just plain wrong","penalty":true,"solved":false}]

I didn't do any optimization yet, this is just an PoC to see if this is where the Contest API should go.

Adds a new optional property to judgement types, 'simplified_judgement_type_id'.
If this is set, any judgements with this type are changed to the simplified
judgement type for other teams. (i.e. you can see the detail on your judgements,
but not for other teams)

To try this out, set up a contest with a bunch of submissions and judgements,
and at least one team account. Create a judgement-types.json in the contest
root by capturing the current output of /judgement-types (or just create the
content manually). Then add the new property to some of the judgements, e.g.:
  {"id":"OLE","name":"output limit","penalty":true,"solved":false,"simplified_judgement_type_id":"FAIL"},
  {"id":"PE","name":"presentation error","penalty":true,"solved":false,"simplified_judgement_type_id":"FAIL"},
  {"id":"WA","name":"wrong answer","penalty":true,"solved":false,"simplified_judgement_type_id":"FAIL"},

The id can point to one of the existing judgement types, or you can create a
new one for this purpose, e.g.:
  {"id":"FAIL","name":"just wrong","penalty":true,"solved":false}]

I didn't do any optimization yet, this is just an PoC to see if this is where
the Contest API should go.
j.add("max_run_time", null);

// use simplified judgement type (if it exists)
IJudgementType jt = getJudgementTypeById(j.getJudgementTypeId());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh did it expose the non simplified one before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only before the freeze 😬

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that is still something that wasn't allowed was it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double-checked Luxor/Astana IAP, it says unauthorized, public/spectators, and teams all get judgements before the freeze, and of course no mention about simplified view b/c we hadn't talked about it yet. Yeah, not great, and at least this would give a mechanism to configure that.

@deboer-tim deboer-tim merged commit 03a1b1f into icpctools:main Aug 1, 2025
4 checks passed
@deboer-tim deboer-tim deleted the simplified-judgement-types branch August 7, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants