-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add input validation command #1093
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1093 +/- ##
==========================================
+ Coverage 82.71% 82.98% +0.26%
==========================================
Files 141 143 +2
Lines 5310 5488 +178
==========================================
+ Hits 4392 4554 +162
- Misses 918 934 +16 ☔ View full report in Codecov by Sentry. |
3181c13
to
0b506a1
Compare
Sample output:
Validator: import sys
batch = int(sys.argv[1])
N = int(input())
if N not in (1,2,4):
print('N not in (1, 2, 4)')
sys.exit(1)
elif N != 1 and batch == 1:
print('N != 1 in batch 1')
sys.exit(1)
test_cases:
- batched:
- {in: 1.txt, out: 1.txt}
- {in: 2.txt, out: 2.txt}
- {in: 3.txt, out: 3.txt}
- {in: 4.txt, out: 4.txt}
points: 1
- batched:
- {in: 1.txt, out: 1.txt}
- {in: 2.txt, out: 2.txt}
- {in: 3.txt, out: 3.txt}
- {in: 4.txt, out: 4.txt}
- {in: a.txt, out: a.txt}
points: 1
validator:
source: validate.py
language: PY3
time_limit: 2
memory_limit: 65536
read_feedback_from: stdout (note that |
0b506a1
to
f28c0fe
Compare
703cea5
to
c39b37f
Compare
dbdd969
to
bba6b8e
Compare
bba6b8e
to
dabe9f9
Compare
80c2977
to
9a235c9
Compare
de7a41f
to
67573db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Yay for sanity - thanks for fixing it up. |
Add to
init.yml