Блог пользователя BucketPotato

Автор BucketPotato, 3 года назад, По-английски

Hi Codeforces!

Thanks to the 76 people who came in person to the Bay Area Programming Contest this year, and of course our 29 virtual teams!

The contest has been uploaded to the gym here, and is available for virtuals or upsolving.

We hoped you enjoyed the problems as much as we enjoyed organizing! Please let us know in the comments if you have any questions or concerns.

UPDATE: the model solutions (and some extras) to all problems are posted at this link.

UPDATE: written editorial is now available here.

  • Проголосовать: нравится
  • +139
  • Проголосовать: не нравится

»
3 года назад, скрыть # |
 
Проголосовать: нравится +26 Проголосовать: не нравится

Great contest, loved the food. Looking forward to next year!

»
3 года назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

ench orz

»
3 года назад, скрыть # |
 
Проголосовать: нравится +41 Проголосовать: не нравится

tysm for the contest it was so fun :3

»
3 года назад, скрыть # |
 
Проголосовать: нравится +27 Проголосовать: не нравится

ezraft orz

»
3 года назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

Really enjoy the contest! Hope it becomes 5-hours contest next year

»
3 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +26 Проголосовать: не нравится

Massive thanks to the organizers for a stellar event. The challenge was exhilarating, and we appreciate the opportunity for virtual participation and upsolving. Looking forward to more in the future

»
3 года назад, скрыть # |
 
Проголосовать: нравится +29 Проголосовать: не нравится

Great contest! First time participating in an in-person contest in around four years and it was so much fun meeting people :)

»
3 года назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

much fun

lemonade pog organizers orz

»
3 года назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

We had a lot of fun organizing and hope you enjoyed it!

»
3 года назад, скрыть # |
 
Проголосовать: нравится +26 Проголосовать: не нравится

very fun contest good food balloons are fun we need a smaller difficulty gap :notlikeblob:

»
3 года назад, скрыть # |
Rev. 3  
Проголосовать: нравится +37 Проголосовать: не нравится

Very good problems, Especially B and J, recommend everyone to try.

I participated the contest all by myself, and ranked 13th finally. I solved 6 problems, almost 7 (finish E only 5 minutes after the contest end, and this solution get accepted at the gym). I am not sure if this result is good or not.

The only con of the contest is that it is too short. 3 hours is not enough, if we have 4 or 5 hours, this will be more close to real ICPC contest.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +62 Проголосовать: не нравится

As an organizer give me contribution.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can anyone help me B

»
3 года назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

I enjoyed eating 1e9+7 slices of pizza at BAPC.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

Grateful for the unforgettable Bay Area Programming Contest experience! Huge thanks to the organizers for seamlessly blending virtual participation with in-person excitement. Can't wait to tackle those problems again

»
3 года назад, скрыть # |
 
Проголосовать: нравится +40 Проголосовать: не нравится

I would like to say this contest is amazing.

As a non-precollege contestant, I really enjoyed the contest.

T-shirts, contest area, food, problems, problems analysis. Everything were great.

The only pity is that I didn't win it :(

Congrats to the winners.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +25 Проголосовать: не нравится

what's the worst-case time complexity of a DP solution for B? I got confused analyzing that but I guessed it may pass and it did.

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится +18 Проголосовать: не нравится

    The number of states in our model solution is exponential, but writing a DP to count the worst-case number of states gets us around $$$2 \cdot 10^5$$$. Code included here (which we also used to generate some of the tests):

    Code
»
3 года назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

Actually I found the practice contest problems are interesting.

Is there a gym for trying the practice contest problems?

»
3 года назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

Is there any written solutions? I'm pretty curious about the solution to problem A and C.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

да

»
3 года назад, скрыть # |
 
Проголосовать: нравится +20 Проголосовать: не нравится

On Problem C's editorial:

"While slower solutions did not pass directly, some contestants managed to solve the problem by precomputing the answers with a slower algorithm, then hardcoding them.".

Is this possible on Codeforces? I thought on doing that but the file size I got precomputing pass by far the 64KB limit on codeforces. I would need around $$$P \times 2 \times 10^4$$$ bytes. Where P is the precision I set for the answer, which I believe is around $$$15$$$. Is there some trick to reduce the file size?