Please read the new rule regarding the restriction on the use of AI tools. ×

PB Hustle 0.1 Editorial

Revision en1, by mohitagr0001, 2020-01-27 19:20:21

A — Elephant

It's optimal to do the biggest possible step every time. So the elephant should do several steps by distance 5 and one or zero step by smaller distance. Answer equals to

Solution Problem A

B — Summer Camp

This one is a simple brute force problem, we will construct our string with numbers. After construction, we just have to print the n-th element of the string.

Solution Problem B

C — Bear and Five Cards

You need sort the array and find the max of 2 occurrences and max of 3 occurrences from the array, then subtract the maximum with the total sum to get the minimum sum.

Solution Problem C

D — Opponents

You simply need to check if any row has 0 in it and find the largest consecutive such row.

Solution Problem D

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English mohitagr0001 2020-01-28 18:56:30 63
en4 English mohitagr0001 2020-01-27 20:13:55 876
en3 English mohitagr0001 2020-01-27 19:59:30 290
en2 English mohitagr0001 2020-01-27 19:29:42 195
en1 English mohitagr0001 2020-01-27 19:20:21 1249 Initial revision (published)