1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
slava [35]
4 years ago
12

There are N rectangular buildings standing along the road next to each other. The K-th building is of size H[K] × 1.

Computers and Technology
1 answer:
Sphinxa [80]4 years ago
8 0

Answer:

# you can write to stdout for debugging purposes, e.g.

# print("this is a debug message")

def solution(H):

   # write your code in Python 3.6

   

   # return area of atmost 2 banners

   # 1 banner

   # maximum height * number of buildings

   single_banner = max(H) * len(H)

   smallest_area = single_banner

   

   

   # 2 banner

   for i in range(1, len(H)):

       double_banner = (max(H[0:i]) * len(H[0:i])) + (max(H[i:]) * len(H[i:]))

       if  double_banner < smallest_area:

           smallest_area = double_banner

   

   return smallest_area

You might be interested in
Define the term editing​
Harrizon [31]

Answer:

editing is a word file mean making changes in the text contain is a file. or a word file is one of the most basic ms office word operation.

8 0
3 years ago
A network administrator has been tasked with configuring access to the Internet for about 50 computers. The administrator has be
scoundrel [369]

Answer:

Proxy Server.

Explanation:

An administrator was given the responsibility of customizing Internet connection for around the numbers of computer systems. He stated the admin that those Internet connections need to go through a system connected to the internet because otherwise inbound and outbound traffic can still be examined but only that systems should have a Web address identified.

So, the admin configured Proxy Server because only certain systems have been identified the following address to the internet.

3 0
4 years ago
I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
S_A_V [24]

Answer:

Working with text in presentation programs is similar to working with text in other application, audience size influences font size, and font size and font color can be changed in presentations.

6 0
4 years ago
Read 2 more answers
A small publishing company that you work for would like to develop a database that keeps track of the contracts that authors and
N76 [4]

Answer:

The database can include the fields related to the Author such as name and address, related to Publisher such as publisher's name and address, related to book such as title and ISBN of the book and related to contract such as payment schedule, contract start and end.

Explanation:

The following fields can be needed for this database:

  • Author First_Name
  • Author's Last_Name
  • Authors_address
  • Publisher_name
  • Publisher_address
  • Book_title
  • Book ISBN
  • contract date : this can be start_date (for starting of contract) and end_date ( when the contract ends)
  • payment_made: for payment schedule.
4 0
4 years ago
rite a function to prompt the user to enter the information for one movie (title, release date, mpaa rating and number of stars)
vesna_86 [32]

Answer:

import java.util.*;

public class Movie {

   

   public static void main (String [] args) {

       

       System.out.println(movieInfo());

       

   }

   public static String movieInfo() {

       Scanner input = new Scanner(System.in);

       Scanner input2 = new Scanner(System.in);

       

       System.out.print("Enter the title: ");

       String title = input.nextLine();

       System.out.print("Enter the release date: ");

       String releaseDate = input.nextLine();

       System.out.print("Enter the mpaa rating: ");

       double mpaaRating = input2.nextDouble();

       System.out.print("Enter the number of stars: ");

       double numberOfStars = input2.nextDouble();

       

       return "Title: "+title+ "\nRelease Date: "+releaseDate+ "\nMPAA Rating: "+ mpaaRating+ "\nNumber of Stars: "+numberOfStars;

   }

}

Explanation

- Create a function called <em>movieInfo()</em> that returns a string, information about a movie

- Ask the user to enter the title, release date, mpaa rating and number of stars of the movie.

- Return these values at the end of the function

- Inside the main, call the function to see the information about the movie

7 0
4 years ago
Other questions:
  • Which are elements involved in diagramming a solution? Choose all that apply.
    10·1 answer
  • Which asset would be helpful in assessing a web or UI designer’s skills?
    13·2 answers
  • Which error produces incorrect results but does not prevent the program from running?
    7·1 answer
  • ........... Is ready made button for defining hyperlink on a slide​
    8·1 answer
  • What are the types of micro computer?​
    14·2 answers
  • Who is willam afton from five nights at freddy
    13·2 answers
  • Will give brainliest
    14·1 answer
  • Shouldn't I be virtuoso? I keep refreshing and opening and closing tabs but it still hasn't updated
    12·1 answer
  • Which of the following safety and privacy features is not included in a P2P app or service?
    5·2 answers
  • Convert 105 decimal to 128 binary form
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!