Skip to content

Test data contains inputs outside problem constraints in taco_generation_example dataset #18

@Mr-zhouyi

Description

@Mr-zhouyi

Description:
While validating the taco_generation_example dataset, I identified an issue regarding the input constraints for the first problem(test MEDIUM id=0) type.

The problem statement explicitly defines the input range:

The only line of the input contains one integer n (5 ≤ n ≤ 100)

However, in the provided test data containing 200 test cases:

  • 4 inputs (n=102, n=103, n=104, n=105) fall outside the constraint range
  • These inputs have non-zero expected outputs, suggesting they're considered valid

According to the problem specification:

  1. Any input outside the [5,100] range should be considered invalid
  2. The correct response for invalid inputs would be either:
    • Program-defined error handling (e.g., returning 0)
    • Exception/error response

Affected test cases:

  • Test ID 192: n=104, expected=1014852610170048000
  • Test ID 193: n=105, expected=1118875002712477920
  • Test ID 200: n=102, expected=832500274966668000
  • Test ID 201: n=103, expected=919616349138003000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions