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 1084. Goat in the Garden

why WA on test#3
Posted by Головченко Дмитрий 10 May 2009 15:13
uses
  SysUtils ,Math;

Var
  a, R:integer;
  s :Real;
begin
  ReadLn(a,R);
  If R > 0.5*a then
    S := pi*R*R + 2*a*sqrt(R*R-0.25*a*a) -4*R*R*arcCos(0.5*a/R);
  else S := pi * R*R;
  WriteLn(S :0:3);
end.
Re: why WA on test#3
Posted by RockmanXfile 25 Jan 2010 21:49
You didn't write another one requirement for this programm