You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mirko is monitoring a construction site. He monitors buildings enumerated from to , starting from the left. For each building, he knows the current number of floors and the number of floors built on each day. He needs to know the answer to queries. The answer to each query is the index of the tallest building after days, as defined by the query. Your task is to help Mirko find the answers to these queries.
Input Format
The first line consists of the numbers and . The second line consists of integers, where the integer represents the initial height of the building. The third line consists of integers, where the integer represents the number of floors erected in one day for the building. The following lines consist of the integer, , representing the day in the query.
Output Format
For each query, output one number which represents the index of the tallest building after days. If there is more than one building, output the building with the greatest index in the input array (with indexes starting at 1).
Constraints:
-> 1<= N<= 10^5
-> 1<= Q<= 10^5
Every other integer in the input will fit in a 32-bit signed integer. And they will be non-negative integers.
Sample Input
Good morning ,
We are a team of 3 members from St Francis Institute of Technology (Mumbai , Maharashtra).
For our Resource open source project Lab (ROSPL) , we are interested to work on the given issue.
Kindly assign this (Mirko at construction site) issue to us .
Thank You.
Activity
Sakshi2002-Sinha commentedon Oct 15, 2022
Heyy @anomekumar08 Can you please assign me this issue?
ArmanKumar21 commentedon Oct 15, 2022
I have already assigned you two issue...When your both pr will get merged after verifying then I will assign you next issue.
Sakshi2002-Sinha commentedon Oct 15, 2022
okay.
I have already completed the other two assigned issues.
how about you assign this also :)
ArmanKumar21 commentedon Oct 15, 2022
Okk...I have assigned you @Sakshi2002-Sinha
ArmanKumar21 commentedon Oct 15, 2022
Hey! @Sakshi2002-Sinha ..you can join me on discord -> @AmanPandey#8132
Sakshi2002-Sinha commentedon Oct 15, 2022
Sure!
Ashwin-5100 commentedon Oct 29, 2022
Helllo Sir ,
Can you please assign me this task
Abhigitlog commentedon Aug 31, 2023
Good morning ,
We are a team of 3 members from St Francis Institute of Technology (Mumbai , Maharashtra).
For our Resource open source project Lab (ROSPL) , we are interested to work on the given issue.
Kindly assign this (Mirko at construction site) issue to us .
Thank You.