Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Потрепаться";
Текущий архив: 2004.04.18;
Скачать: [xml.tar.bz2];

Вниз

В чем суть?   Найти похожие ветки 

 
Chcnger   (2004-03-21 20:40) [0]

В чем суть? Помогите вникнуть в задачу! Я даже не могу понять :(

Jeep
Ограничение времени: 0.5 секунды
Ограничение памяти: 1 000 КБ

Our jeep is in the desert and must reach a point which is N kilometres away from it. The terrain is tough, the car is old, and it seems like the fuel flows out, and because of this on every kilometre travelled, one litre of fuel is spent. But the jeep has fuel-cans and fuel tank with total capacity of M < N litres. On other hand, at the beginning of the road there is unlimited amount of fuel, and everywhere in the desert there are empty cisterns, in which the jeep, passing near them, can leave unlimited amount of fuel. Write a program which calculates the minimum amount of fuel in litres which is needed to reach the destination point.

Исходные данные
Two integers N and M are written on the only line of input. It is known that 5 * M >= N > 0. (N < 32000).

Результат
The result (the minimum liters of fuel, eventually rounded up), must be written on the only line of output.

Пример исходных данных
1000 500
Пример результата
3837


Может кто подскажет?


 
VMcL ©   (2004-03-21 21:01) [1]

Проблемы с английским?


 
Chcnger   (2004-03-21 21:05) [2]

НЕ с английским все ок, а вот с пониманием задачи ........
Не могу понять (вообще нет идей) как ее решать или как к ней подойти :(


 
Chcnger   (2004-03-22 11:30) [3]

/\


 
nikkie ©   (2004-03-22 11:55) [4]

с голым кондуктором типа разобрался?


 
Chcnger   (2004-03-22 22:09) [5]

Да розобрался :)
Спасибо :)


 
nikkie ©   (2004-03-22 22:15) [6]

ну ты крут... первый пост - не понимаю о чем вообще задача, бац-бац, 10 постов, узнаешь, что такое проценты - все понятно, тема закрыта.

если не секрет, в чем цель, причина и смысл перебора этих задачек?


 
Chcnger   (2004-03-22 22:19) [7]

К олимпиаде готовлюсь, завтра уже открытие :)


 
VMcL ©   (2004-03-23 01:59) [8]

>>Chcnger  (21.03.04 21:05) [2]
>НЕ с английским все ок, а вот с пониманием задачи ........

Ясно. А на русском языке привести задачу религия не позволяет. Тем более, что надо же проверить знание английского языка у участников форума...



Страницы: 1 вся ветка

Форум: "Потрепаться";
Текущий архив: 2004.04.18;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.033 c
1-1081079427
Serious Sam
2004-04-04 15:50
2004.04.18
Как сделать, чтобы приложение не отображалось на панели задач?


3-1079687625
Denis_Visma
2004-03-19 12:13
2004.04.18
Вставка записей в Представление


4-1076313872
Rentgen
2004-02-09 11:04
2004.04.18
ListView_GetImageList


14-1080017283
Dmitriy_G
2004-03-23 07:48
2004.04.18
Что такое Патч?


1-1080366438
SergeyM
2004-03-27 08:47
2004.04.18
ShellListView





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский