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 1088. Ilya Murometz

Please help me !!!
Posted by Vitaliy Surovyi 11 Sep 2003 23:42
Please post some tests or hints for this problem.
I can't understand why my programm wrong.

Var
   D,E,F,De,Dp,H,T : Longint;
Begin
Read(D,E,F,De,Dp,H);
T:=Trunc(Exp(Ln(2)*F));
If (De > T Div 2) And (Dp <= T Div 2) Then Begin
If (F-E)+(F-D)>H Then Writeln('NO') Else Writeln('YES');
Halt;
End;

If (Dp > T Div 2) And (De <= T Div 2) Then Begin
If (F-E)+(F-D)>H Then Writeln('NO') Else Writeln('YES');
Halt;
End;

If Abs(E-D)>H Then Writeln('NO') Else Writeln('YES');
End.
Re: Please help me !!!
Posted by GodZilla 13 Sep 2003 19:29
Mail me and you gen an answer !