python-cpp-html-programs-projects icon indicating copy to clipboard operation
python-cpp-html-programs-projects copied to clipboard

Mirko at construction site (python,cpp,java)

Open ArmanKumar21 opened this issue 2 years ago • 8 comments

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

3 6 7 5 1 1 2 3 0 1 2 3 4 5 Sample Output

1 1 2 2 3 3

ArmanKumar21 avatar Oct 15 '22 07:10 ArmanKumar21

Heyy @anomekumar08 Can you please assign me this issue?

Sakshi2002-Sinha avatar Oct 15 '22 08:10 Sakshi2002-Sinha

I have already assigned you two issue...When your both pr will get merged after verifying then I will assign you next issue.

ArmanKumar21 avatar Oct 15 '22 13:10 ArmanKumar21

I have already assigned you two issues...When your both pr will get merged after verifying then I will assign you next issue.

okay. I have already completed the other two assigned issues. how about you assign this also :)

Sakshi2002-Sinha avatar Oct 15 '22 15:10 Sakshi2002-Sinha

Okk...I have assigned you @Sakshi2002-Sinha

ArmanKumar21 avatar Oct 15 '22 16:10 ArmanKumar21

Hey! @Sakshi2002-Sinha ..you can join me on discord -> @AmanPandey#8132

ArmanKumar21 avatar Oct 15 '22 16:10 ArmanKumar21

Hey! @Sakshi2002-Sinha ..you can join me on discord -> @AmanPandey#8132

Sure!

Sakshi2002-Sinha avatar Oct 15 '22 17:10 Sakshi2002-Sinha

Helllo Sir , Can you please assign me this task

Ashwin-5100 avatar Oct 29 '22 18:10 Ashwin-5100

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.

Abhigitlog avatar Aug 31 '23 06:08 Abhigitlog