repo.or.cz
/
and.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding some more judges, here and there.
[and.git]
/
NEERC
/
asteroids
/
check.dpr
blob
aed939475bc98bcc03eb0a4a2b54ff9762cf5a89
1
uses
\r
2
testlib, sysutils;
\r
3
\r
4
const
\r
5
eps = 1.1e-5;
\r
6
\r
7
var
\r
8
ja, pa: extended;
\r
9
\r
10
begin
\r
11
ja := ans.readreal;
\r
12
pa := ouf.readreal;
\r
13
\r
14
if abs(ja - pa) > eps then
\r
15
quit(_wa, 'Expected: ' + floattostr(ja) + ', found: ' + floattostr(pa));
\r
16
\r
17
quit(_ok, floattostr(ja));
\r
18
end.