Posts

Showing posts with the label minimize digit sum solution codechef

Minimize Digit Sum Solution | Codechef September long challenge 2021

Image
                  September Challenge 2021 (Rated for Div 3)                                     Scorable Problems for Division 3   Name   Code   Successful Submissions   Accuracy Airline Restrictions AIRLINE Travel Pass TRAVELPS Shuffling Parities SHUFFLIN XOR Equal PALINT Minimize Digit Sum MNDIGSUM 2-D Point Meeting POINTMEE Covaxin vs Covishield COVAXIN Treasure Hunt TREHUNT Minimum Digit Sum 2 MNDIGSM2 Codechef September long challenge 2021 | Minimize Digit Sum Solution Post published: September 4, 2021 Post category: Coding Post comments: 0 Comments Let  f ( n , B ) f(n,B)  be the sum of digits of the integer  n n  when written in base  B B . Given  Q Q  queries, each consisting of three integers  n , l n,l  and  r r . Find the value of  B B  corresponding to which...