Skip to content

Inform users of precision of different judge solutions #419

Open

Description

@Matistjati

There have been at least ~6 problems in Kattis contests with float answers, where the judge solution has floating point inaccuracies. I think we could help reduce the risk of this by displaying the largest relative/absolute error that each submission gets relative the .ans files. Or at least warn if a particular submission is close to the error limit.

I haven't made many float problems at all, so not sure whether this a good idea. But I think it is? Summoning @Tagl since you do a lot of geometry problems, and therefore floating point problems.

Activity

  1. changed the title [-]Inform users of precision[/-] [+]Inform users of precision of different judge solution[/+] on May 4, 2026
  2. changed the title [-]Inform users of precision of different judge solution[/-] [+]Inform users of precision of different judge solutions[/+] on May 4, 2026
  3. Matistjati commented on May 5, 2026

    @Matistjati
    ContributorAuthor

    Additionally, it would probably be a good idea to warn if a problem has strict precision requirements, but the answer files contain few digits.

  4. Tagl commented on May 5, 2026

    @Tagl
    Contributor

    I am the number one floating point hater in my country. In my geometry problems I generally try to avoid the judge solution using floats at all unless avoiding them is extremely complicated.

    I strongly agree with both suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions