uva online judge self describing sequence problem solution python | uva 10049

The self describing sequence problem  (uva 10049) is also very straight forward and easy programming challenge in competitive programming once understood well. Which can be stated as (from online judge) Solomon Golomb’s self–describing sequence ⟨f(1),f(2),f(3),...⟩ is the only nondecreasing sequence of positive integers with the property that it contains exactly f(k) occurrences of k for each k. A few moments thought reveals that the sequence must begin as follows: n 1 2 3 4 5 6 7 8 9 10 11   12 f(n) 1 2 2 3 3 4 4 4 5 5 5 6 In this problem you are expected to write a program that calculates the value of f(n) given the value of n. Sample Input 100  9999  123456  1000000000  0 Sample Output 21  356  1684  438744 Programming Explanation This is very simple problem states that for given range of n as input (as shown in above image), we have

About Us

                   Cybosocks is a company started by students origin from india. Aim of us is only to provide the hidden knowledge than not available on internet sources. Often many times student struggle to find out exact and content-full information from web, but failed to do so since lot of information still not available on web for free access. 

                   At first cybosocks was only limited upto providing education through youtube channel only. But as days are gone, there is a need to get into blogging since lot of programming language related questions can be answered easily on blogs rather than videos. Even though there are lot of websites available about computer science, but no one gives required knowledge for free, no one clearly describes the algorithms, Thus, hand up with us to build and provide better features at free of cost. Lets make quality programming not bulk. 
                 
Cybosocks got its name by combination of two wards 'cyber' and 'socks'. Cyber stands for relative content with computers and socks in meant to make content to understand as easy as equiping a socks.
               
                                                                        Share karo yarr😄

                    

Comments

Popular posts from this blog

uva online judge vito's family problem solution python | uva 10041

uva online judge australian voting problem solution python | uva 10142

uva online judge common permutation problem solution python | uva 10252