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
/
yield
/
yield_gk_check.dpr
blob
f786dfd92f8dab4c3ad309d00773b9a9fee83b49
1
uses
\r
2
sysutils;
\r
3
const
\r
4
max_a = 1000;
\r
5
var
\r
6
a, b: longint;
\r
7
begin
\r
8
assign(input, 'yield.in'); reset(input);
\r
9
assign(output, 'yield.out'); rewrite(output);
\r
10
\r
11
read(a, b);
\r
12
assert((-max_a <= a) and (a <= max_a), 'A out of range');
\r
13
assert((-max_a <= b) and (b <= max_a), 'B out of range');
\r
14
writeln(a + b);
\r
15
\r
16
close(input);
\r
17
close(output);
\r
18
end.