RithwikG's picture
initial commit
7a8878c
While working at DTL, Ela is very aware of her physical and mental health. She started to practice various sports, such as Archery, Yoga, and Football.Since she started engaging in sports activities, Ela switches to trying a new sport on days she considers being "Luxury" days. She counts the days since she started these activities, in which the day she starts is numbered as day 1. A "Luxury" day is the day in which the number of this day is a luxurious number. An integer x is called a luxurious number if it is divisible by ⌊√xβŒ‹.Here ⌊rβŒ‹ denotes the "floor" of a real number r. In other words, it's the largest integer not greater than r.For example: 8, 56, 100 are luxurious numbers, since 8 is divisible by ⌊√8βŒ‹=⌊2.8284βŒ‹=2, 56 is divisible ⌊√56βŒ‹=⌊7.4833βŒ‹=7, and 100 is divisible by ⌊√100βŒ‹=⌊10βŒ‹=10, respectively. On the other hand 5, 40 are not, since 5 are not divisible by ⌊√5βŒ‹=⌊2.2361βŒ‹=2, and 40 are not divisible by ⌊√40βŒ‹=⌊6.3246βŒ‹=6.Being a friend of Ela, you want to engage in these fitness activities with her to keep her and yourself accompanied (and have fun together, of course). Between day l and day r, you want to know how many times she changes the activities.