Are You Superstitious Too
CodeChefOpen on judge ↗
Pankaj is very superstitious specially with number 13. Whereever he finds this number he deletes it. He wants that number should not be displayed. You have to write a program that will omit the pattern 13 form range of numbers Input Range of numbers Output Number of occurrences of pattern 13 with where it occurred (including 131,132 etc) Example Input: 1-100 Output: No. of occurrence of 13
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start