HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Question 1"

There is a contest!

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

Pages:  [1]  (2)

imesecanFeb.25.2012 at 01:22:35 PM
0Сообщение скрыто

imesecanFeb.25.2012 at 01:36:04 PM
1That number shows the end of the input. With that number you end your process and show your result

imesecanFeb.25.2012 at 01:46:10 PM
2Сообщение скрыто

imesecanFeb.25.2012 at 01:49:10 PM
3That'is the university system :)

imesecanFeb.25.2012 at 01:52:22 PM
4Don't forget that it says there can be unknown number of input and
0 <= n <=1000. That is there can be zero input.

imesecanFeb.25.2012 at 01:53:35 PM
5Сообщение скрыто

imesecanFeb.25.2012 at 01:57:58 PM
6Every number is converted separately,

20 means FF; that's Grade point is 0
82 means BB; that's Grade point is 3
71 means CC; that's Grade point is 2
-1 means end of input.
Thus there are 3 input and their GP sum is 5.
Then GPA is 1.67

imesecanFeb.25.2012 at 02:07:47 PM
7Сообщение скрыто

imesecanFeb.25.2012 at 02:39:59 PM
8Сообщение скрыто

imesecanFeb.25.2012 at 02:44:27 PM
9Welcome back :)

No, it's not a problem. But, if you want you can download

codeblocks-10.05mingw-setup.exe

from the following page

http://www.codeblocks.org/downloads/26

imesecanFeb.25.2012 at 02:49:04 PM
10Сообщение скрыто

imesecanFeb.25.2012 at 02:51:35 PM
11Сообщение скрыто

imesecanFeb.25.2012 at 02:54:18 PM
12Marineo: Read this forum explanations once more.
Xhesika: in cmath library round functions rounds a floating point. You can search and get more help from internet.

imesecanFeb.25.2012 at 03:29:07 PM
13Сообщение скрыто

imesecanFeb.25.2012 at 03:34:27 PM
14Сообщение скрыто

imesecanFeb.25.2012 at 03:34:35 PM
15Сообщение скрыто

imesecanFeb.25.2012 at 04:01:44 PM
16
(14: Mirgentjan)
I think when it is empty, it has 0 elements and the average is also 0.

imesecanFeb.25.2012 at 04:04:48 PM
17
(15: xhesika)
Your program doesn't round to the 100th digit.

For the third test case your program shows 2.375, but the program expects 2.38

imesecanFeb.25.2012 at 04:06:41 PM
18
(13: leander)
I think you use float,
---------- Your output.txt ----------
3.47
----------Expected pattern.txt ----------
3.46

For such questions double precision is better.

imesecanFeb.25.2012 at 04:10:55 PM
19Сообщение скрыто


Pages:  [1]  (2)

www.contester.ru