You all heard that our very beloved senior Priyom da got married recently!! Its all in past and now you juniors don't know if we all from ACM family joined his marriage ceremony or not that was held in Dhaka. We all heard about the ceremony a day before the date, and we were in hurry to go there. So, i am letting u know if we made it!! Or not :(
In this problem, you will be giving all the velocities of the bus we used and the average velocity that we needed to make it in time. You will also be given some queries. In the queries there will be and (range), you need to find the average velocity of the given range and decide if we made it in time for the query. If the average velocity of the range is greater or equal of the required average velocity, you can assume we made it in time :D, otherwise not :(
You will be given the number of velocities of the bus and an array that contains velocities of the bus and average speed we need and then a query .
In each query, you will be given a range and where .
For each query, print "Hurray! we made it in time!!" if the average velocity given average velocity we needed. Otherwise print "Oh! we missed it!!".
7 1 9 13 7 19 20 22 12 3 1 7 1 4 3 5
Hurray! we made it in time!! Oh! we missed it!! Hurray! we made it in time!!
Average velocity is always integer in this problem. Suppose, If average of the range is then we will take it as .
Login to submit
The main goal of this problem is to calculate average velocities for QQQ queries. If you write a bru...