mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:29:28 +02:00
+ tw3210
This commit is contained in:
parent
1f338ade0d
commit
9a9c17f078
18
tests/webtbs/tw3210.pp
Normal file
18
tests/webtbs/tw3210.pp
Normal file
@ -0,0 +1,18 @@
|
||||
Const
|
||||
N = 10000;
|
||||
|
||||
Var
|
||||
count : array[0..200] of int64;
|
||||
i , tot : longint;
|
||||
|
||||
Begin
|
||||
fillchar(count , sizeof(count) , 0);
|
||||
for i := 1 to N do
|
||||
begin
|
||||
inc(count[random(201)]);
|
||||
end;
|
||||
tot := 0;
|
||||
for i := 0 to 200 do inc(tot , count[i]);
|
||||
if (tot <> N) then
|
||||
halt(1);
|
||||
End.
|
Loading…
Reference in New Issue
Block a user