imesecan | 15.дек.2012 в 10:23:58
|
0 | Сообщение скрыто
|
imesecan | 15.дек.2012 в 10:42:24 | |
1 | How do you calculate the Average fuel price for 100kms?
|
imesecan | 15.дек.2012 в 10:43:22 | |
2 | (Average price per 100kms) = (Average Liter Price) * (Fuel consumption per 100kms)
|
imesecan | 15.дек.2012 в 10:49:24
|
3 | Сообщение скрыто
|
imesecan | 15.дек.2012 в 10:52:42 | |
4 | I checked the input once more. It seems correct. I think you have problem somewhere.
|
imesecan | 15.дек.2012 в 11:01:08
|
5 | Сообщение скрыто
|
imesecan | 15.дек.2012 в 11:10:36 | |
6 | There is at least one record.
|
imesecan | 15.дек.2012 в 11:27:50
|
7 | Сообщение скрыто
|
imesecan | 15.дек.2012 в 11:29:44 | |
8 | You will give two numbers (Fuel consumption per 100kms) and the (Average price per 100kms). They are both float and space separated
|
imesecan | 15.дек.2012 в 11:31:01
|
9 | Сообщение скрыто
|
imesecan | 15.дек.2012 в 11:42:23 | |
10 | No the precision is calculated like: if (abs(yourCalculatedResult - expectedResult)>0.001) return ERROR;
|
imesecan | 15.дек.2012 в 12:15:10 | |
11 | -1 is not count in calculation of the average fuel price.
|
imesecan | 15.дек.2012 в 12:46:55 | |
12 | Average fuel price = Total amount paid / total liters bought
|
imesecan | 15.дек.2012 в 12:58:13
|
13 | Сообщение скрыто
|
imesecan | 15.дек.2012 в 13:03:12 | |
14 | Hello Ardit you have the same problem I think Average liter price = Total amount paid / total liters bought
|
imesecan | 15.дек.2012 в 16:17:46
|
15 | Сообщение скрыто
|
imesecan | 15.дек.2012 в 16:47:41 | |
16 | 3, 4 digits
|
imesecan | 20.дек.2012 в 19:11:25 | |
17 | Реплика удалена
|
imesecan | 21.дек.2012 в 14:55:24 | |
18 | For 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 )
|