ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1823. Идеальный газ

n = 0 ?
Послано RR 19 мар 2011 14:50
When n = 0,
if we have to calculate T, is the answer 'undefined' ?
if we have to calculate V, is the answer 'error' or 'undefined'?
Re: n = 0 ?
Послано RR 19 мар 2011 15:02
Accepted. Formula should be understood like math :)

Edited by author 19.03.2011 19:58

Edited by author 19.03.2011 19:58
Re: n = 0 ?
Послано George_Aloyan[PTSObninsk] 29 мар 2011 15:13
I don't understend what to do in this case.
If we have any of t,v,n,p given to us <= 0 then we should write 'error'? Or I haven't understood the problem right?
Re: n = 0 ?
Послано George_Aloyan[PTSObninsk] 9 апр 2011 17:36
I just haven't read properly. If we have input p = 0 and n = 0 then we should output 'undefined'.
If (p = 0 and n <> 0) or (p <> 0 and n = 0) then we should output 'error'.
When we calculate n and p CAN be 0. We just must output '0'.
When we calculate T and V CAN'T be 0. We just must output 'error'.

I hope it'll help and you will not be sitting for hours as I did.

Sorry for my English, but I think it is possible to understand what I meant even with my mistakes.
to George_Aloyan[PTSObninsk]
Послано Dimonka 22 мар 2012 15:35
so i rebuilt my programm like that, but still  wa6!
http://acm.timus.ru/forum/thread.aspx?id=27987&upd=634675078581077076
someone please help me@!