Giter Club home page Giter Club logo

skeleton-loader's People

Contributors

minaalfy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

skeleton-loader's Issues

kvass ask

Kvass is especially popular on a tropical island at the height of the tourist season. Previously, all kvass was imported from Russia, but with the increasing popularity of this drink, the question arose about the production of kvass right on the spot. There are N resort towns on the island, all cities are located on the coast. Along the coast there is the only ring road on the island connecting all the cities. Traffic on the road is possible in any direction. For each city, it is known how many barrels of kvass it needs daily.

It is planned to build only one factory in some city, and deliver products to other cities. Transportation of one barrel to a neighboring city costs one tugrik (local currency).

Your task is to determine in which of the cities a factory should be built in order to minimize transportation costs.

Input data
The first line of input data contains the number N – the number of cities ( N ≤ 10) and N more numbers – the amount of kvass required daily by the 1st, 2nd, ..., N-th city (cities are numbered in a row along the ring road).

Output data
Print one number – the number of the city in which the plant should be built. If there are several suitable cities, print the number of any of them.

please help me.

Ask

how to deploy it how?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.