imesecan | 25.фев.2012 в 13:22:35
|
0 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 13:36:04 | |
1 | That number shows the end of the input. With that number you end your process and show your result
|
imesecan | 25.фев.2012 в 13:46:10
|
2 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 13:49:10 | |
3 | That'is the university system :)
|
imesecan | 25.фев.2012 в 13:52:22 | |
4 | Don't forget that it says there can be unknown number of input and 0 <= n <=1000. That is there can be zero input.
|
imesecan | 25.фев.2012 в 13:53:35
|
5 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 13:57:58 | |
6 | Every 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
|
imesecan | 25.фев.2012 в 14:07:47
|
7 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 14:39:59
|
8 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 14:44:27 | |
9 | Welcome 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
|
imesecan | 25.фев.2012 в 14:49:04
|
10 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 14:51:35
|
11 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 14:54:18 | |
12 | Marineo: 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.
|
imesecan | 25.фев.2012 в 15:29:07
|
13 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 15:34:27
|
14 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 15:34:35
|
15 | Сообщение скрыто
|
imesecan | 25.фев.2012 в 16:01:44 | |
16 | I think when it is empty, it has 0 elements and the average is also 0.
|
imesecan | 25.фев.2012 в 16:04:48 | |
17 | 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
|
imesecan | 25.фев.2012 в 16:06:41 | |
18 | I think you use float, ---------- Your output.txt ---------- 3.47 ----------Expected pattern.txt ---------- 3.46
For such questions double precision is better.
|
imesecan | 25.фев.2012 в 16:10:55
|
19 | Сообщение скрыто
|