Conversation
46d2925 to
730d243
Compare
quantum5
requested changes
Dec 17, 2018
|
|
||
|
|
||
| def check(process_output, judge_output, judge_input, point_value, **kwargs): | ||
|
|
| return CheckerResult(False, 0, "Sequence contains negative numbers!") | ||
|
|
||
| # We check that the sequence sums to K | ||
|
|
| return CheckerResult(False, 0, "Sequence's sum is incorrect!") | ||
|
|
||
| # The minimal possible product is 0, so we check if there exists a 0 in the sequence | ||
|
|
730d243 to
2c9807a
Compare
quantum5
requested changes
Dec 17, 2018
| # We again tell them they did not follow output specifications | ||
| return CheckerResult(False, 0, "Sequence contains non-numeric values!") | ||
|
|
||
| # We check that the sequence has N numbers |
2c9807a to
1907a3b
Compare
1907a3b to
671f8fe
Compare
quantum5
reviewed
Mar 2, 2019
| conditions_met += 1 | ||
| else: | ||
| return CheckerResult(False, 0, "Sequence's sum is incorrect!") | ||
| # The minimal possible product is 0, so we check if there exists a 0 in the sequence |
Xyene
approved these changes
Oct 21, 2019
Contributor
|
What's going on with this PR? |
int-y1
reviewed
Jun 6, 2022
| if len(process_lines) != 1: | ||
| # They did not follow output specifications | ||
| # Thus they get a WA verdict, 0 points, and a message telling them their output is malformed | ||
| return CheckerResult(False, 0, "Expected 1 line of output, got %d" % len(process_lines)) |
Contributor
There was a problem hiding this comment.
Use single quotes and an f-string.
int-y1
reviewed
Jun 6, 2022
| process_tokens = map(int, process_lines[0].split()) | ||
| except (TypeError, ValueError): | ||
| # We again tell them they did not follow output specifications | ||
| return CheckerResult(False, 0, "Sequence contains non-numeric values!") |
int-y1
reviewed
Jun 6, 2022
| # We check all numbers in the sequence are non-negative | ||
| if any(process_token < 0 for process_token in process_tokens): | ||
| # We again tell them they did not follow output specifications | ||
| return CheckerResult(False, 0, "Sequence contains negative numbers!") |
int-y1
suggested changes
Jun 6, 2022
Contributor
int-y1
left a comment
There was a problem hiding this comment.
need to update problem_examples/README.md
please use a zip file instead of 5 text files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.