ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1823. Ideal Gas

to Admins, about WA 3
Posted by cupidon4uk [Lviv_NU] 21 Jun 2012 01:06
Hi.
I find out that test #3 looks like this :
p = 3
V = 4
n = 0

When we need to find T, answer will be "undefined" if and only if n = 0 (because, in this way, we get division by zero).
In second and in third tests n=0, and we need to find T. I wrote code like this :

if( we need find T ) {
    if( n==0 )
         printf("undefined\n");
}


But, in this way, I get WA 3.
What is wrong? Please, check test, or, if I made mistake, help me figure it out.
Thanks.

Edited by author 16.07.2012 01:48
Re: to Admins, about WA 3
Posted by Marin Tiberiu 21 Aug 2012 15:15
the answer is "error" because there is no solution



Edited by author 21.08.2012 15:16
Re: to Admins, about WA 3
Posted by cupidon4uk [Lviv_NU] 10 Sep 2012 00:21
But in this case I get WA 2, changing only one string in my code.