-
Notifications
You must be signed in to change notification settings - Fork 540
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
Adding casework sub-section under "Ad Hoc" #5199
base: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
content/2_Bronze/Ad_Hoc.mdx
Outdated
sys.stdin = open("herding.in", "r") | ||
sys.stdout = open("herding.out", "w") |
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.
use with
for file io like the other python code
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.
aight
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.
fixed
content/2_Bronze/Ad_Hoc.mdx
Outdated
What is casework? | ||
<Quiz.Answer correct> |
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.
not necessary ngl
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.
fixed
for more information, see https://pre-commit.ci
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.
I have edited the following:
- remove casework question for quiz
- added different type of python file i/o for sleepy cow herding solution
freopen("herding.out", "w", stdout); | ||
|
||
// all cow locations | ||
vector<int> a; |
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.
Why not make a vector of size 3
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.
i mean we do end up making one anyway in the next lines
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.
That is just unnecessary
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.
i got the c++ code from the usaco.guide solution from the problem, so thats why its like that
Place an "x" in the corresponding checkbox if it is done or does not apply to this pull request.
this is the suggestion related to this pull.
Please edit / request changes if my explanations are too vague / incorrect to you.