Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

a good set solve ?

$
0
0

okay, so I used two way to do this problem, first is using a custom fibonacci where instead of f(a) = f( a - 1 ) + f( a -2 ), I turned it into f(a) = f(a - 1 ) + f( a - 2 ) + 1, this should make sure that it meets the requirements, and it did, albeit only for the first subtask, next I used a method that will definitely meet the requirement, by having the output like this, e.g input 1, outputs 1 input 2, outputs 1 11 input 3, outputs 1 11 111 input 4, outputs 1 11 111 1111 if the outputs are like this, there should be no way that the output don't meet the requirements, and yet I got WA for both subtask...weird anyways, here is my submission


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>