HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "50427 - Passed or Failed"

There is a contest!

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

imesecanAug.31.2015 at 02:12:18 PM
0--- Test 1 ---
49 65 45

--- Pattern1 ---
Failed

imesecanNov.16.2015 at 04:59:17 PM
1(1: erhoxha15)
In the question it asks you to show only the message "Passed" or "Failed". In your code you are also showing student average.

Just read what is given and show what is asked.
Do not show anything else.

Can you please send your Epoka email to me?

imesecanNov.21.2015 at 08:49:21 AM
2When calculating averages you need to pay attention integer floating point operations. integer divided by integer does integer division operation. In integer division floating point part is omitted. For example in the expression:
float x;
x= 9 / 10;
x will be 0.

If you want to force to have floating point result, you need to typecast

float x;
x=(float)9/10;
x will be 0.9


www.contester.ru