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

6 test!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Posted by Dimonka 16 Mar 2012 15:17

if ((p = 0) and (n = 0)) and ((Pc = 1) and (Nc = 1)) then
  writeln('undefined');

if (((p = 0) and (n <> 0)) or ((p <> 0) and (n = 0)))and ((Pc = 1) and (Nc = 1)) then
  writeln('error');

this pair if we have on input n and p (Nc = 1 and Pc = 1)
but still i have wa on 6 test!
are there any conditions for "error" and "undefined"??? please help. i've already sent my solution for 13 times! and still it's wa...
Re: 6 test!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Posted by Alex.pas 13 Nov 2012 16:18
Oh, I have the same problem:(