cpinitiative / usaco-guide

A free collection of curated, high-quality resources to take you from Bronze to Platinum and beyond.
https://usaco.guide
Other
1.62k stars 494 forks source link

Contact Form Submission - Suggestion (Problem Solution - Take a Guess (ID: cf-1556D)) #4872

Open maggieliu05 opened 1 week ago

maggieliu05 commented 1 week ago

Someone submitted the contact form!

URL: https://usaco.guide/problems/cf-1556D/user-solutions Module: Problem Solution - Take a Guess (ID: cf-1556D) Topic: Suggestion Message: I believe there's an easier way to calculate A + B, since we have A + B = A AND B + A OR B, we don't have to calculate A XOR B. The equation is also more useful than the one mentioned in the solution.

envyaims commented 1 week ago

This is the solution in the official editorial. Users can view that if they'd like. I described an alternative solution with some further intuition.