code i have written :
my code is failing at 5th test
link for the question:
https://codeforces.com/contest/535/problem/B
Doubt in B. Tavas and SaDDas(from code forces discussed in webinar)
Hello @shubham.mehla2000,
Following is the link of the video, where Prateek Bhaiyan has separately explained this topic along with code:
https://online.codingblocks.com/player/29932/content/8004/42
It’s title is: Tavas and SaDDas, Codeforces 535-B,(i.e. the last video lecture) under the Bitmasking Techniques section
Now, coming back to your code:
It is based on the explanation given on the webinar:
You have no need to calculate for both 4 and & 7 separetly.
What you are required to do is to calculate the count all the possible numbers before the given number.
Hope, this would help.
Let me know if you face any issue even after watching the video.
1 Like