Skip to content
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

Slingshot Editorial #4805

Merged

Conversation

TheGamingMousse
Copy link
Contributor

Place an "x" in the corresponding checkbox if it is done or does not apply to this pull request.

  • I have tested my code.
  • I have added my solution according to the steps here.
  • I have followed the code conventions mentioned here.
    • I understand that if it is clear that I have not attempted to follow these conventions, my PR will be closed.
    • If changes are requested, I will re-request a review after addressing them.
  • I have linked this PR to any issues that it closes.

lmk if the explanation should be a bit more thorough on the case handling and other stuff (altho I think writing out all the casework is kind of a waste of time)

solutions/platinum/usaco-816.mdx Show resolved Hide resolved
solutions/platinum/usaco-816.mdx Outdated Show resolved Hide resolved
solutions/platinum/usaco-816.mdx Outdated Show resolved Hide resolved
@SansPapyrus683
Copy link
Contributor

you say 4 cases but i don't see any separation of them in the code

@TheGamingMousse
Copy link
Contributor Author

you say 4 cases but i don't see any separation of them in the code

I mentioned that I didn't code up each of the four cases separately in the editorial.

Basically, the loop considers if $a_i <= x_i$ for every matching, and then the $pref$ and $res1$ thing matches up with if $b_i <= y_i$ or something, and similarly. lmk if I should make this a bit more clear.

solutions/platinum/usaco-816.mdx Outdated Show resolved Hide resolved
solutions/platinum/usaco-816.mdx Show resolved Hide resolved
solutions/platinum/usaco-816.mdx Outdated Show resolved Hide resolved
solutions/platinum/usaco-816.mdx Outdated Show resolved Hide resolved
solutions/platinum/usaco-816.mdx Show resolved Hide resolved
Co-authored-by: Ryan Chou <81596991+ryanchou-dev@users.noreply.github.com>
@SansPapyrus683 SansPapyrus683 merged commit 49572f4 into cpinitiative:master Oct 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants