HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Question 3"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanDec.15.2012 at 10:23:58 AM
0Сообщение скрыто

imesecanDec.15.2012 at 10:42:24 AM
1How do you calculate the Average fuel price for 100kms?

imesecanDec.15.2012 at 10:43:22 AM
2(Average price per 100kms) = (Average Liter Price) * (Fuel consumption per 100kms)

imesecanDec.15.2012 at 10:49:24 AM
3Сообщение скрыто

imesecanDec.15.2012 at 10:52:42 AM
4I checked the input once more. It seems correct. I think you have problem somewhere.

imesecanDec.15.2012 at 11:01:08 AM
5Сообщение скрыто

imesecanDec.15.2012 at 11:10:36 AM
6There is at least one record.

imesecanDec.15.2012 at 11:27:50 AM
7Сообщение скрыто

imesecanDec.15.2012 at 11:29:44 AM
8
(7: Arnold)
You will give two numbers (Fuel consumption per 100kms) and the (Average price per 100kms). They are both float and space separated

imesecanDec.15.2012 at 11:31:01 AM
9Сообщение скрыто

imesecanDec.15.2012 at 11:42:23 AM
10No the precision is calculated like:
if (abs(yourCalculatedResult - expectedResult)>0.001)
return ERROR;

imesecanDec.15.2012 at 12:15:10 PM
11
(12: Arnold)
-1 is not count in calculation of the average fuel price.

imesecanDec.15.2012 at 12:46:55 PM
12Average fuel price = Total amount paid / total liters bought

imesecanDec.15.2012 at 12:58:13 PM
13Сообщение скрыто

imesecanDec.15.2012 at 01:03:12 PM
14
(15: ArditMeti)
Hello Ardit you have the same problem I think
Average liter price = Total amount paid / total liters bought

imesecanDec.15.2012 at 04:17:46 PM
15Сообщение скрыто

imesecanDec.15.2012 at 04:47:41 PM
163, 4 digits

imesecanDec.20.2012 at 07:11:25 PM
17Post is deleted

imesecanDec.21.2012 at 02:55:24 PM
18For the question on this site, the program uses files. But when you read, you read as if you read from the keyboard (cin in C++ or scanf in C).

And similarly, when showing the results you show as if you show on the screen (cout statement in C++ or printf in C )


www.contester.ru