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
/
xtra
/
xtra_as_direct.dpr
blob
1b9a617edf80ac2561f6e18265483ee6d6f697bd
1
var
\r
2
sum: int64;
\r
3
x: longint;
\r
4
begin
\r
5
reset(input, 'xtra.in');
\r
6
rewrite(output, 'xtra.out');
\r
7
\r
8
sum := 0;
\r
9
while true do begin
\r
10
readln(x);
\r
11
if x = 0 then break;
\r
12
sum := sum + x;
\r
13
writeln(sum);
\r
14
flush(output);
\r
15
end;
\r
16
end.