- (missing)
- 2009-08-09 20:12:05 @
var
b:array[0..5000]of longint;
m,k,o,i,n,d,j,h:longint;
a:array[0..5000]of longint;
begin
readln(n,M,K);
readln(o);
for i:=1 to m do
read(a[i]);
d:=0;
for i:=1 to n do
begin
for j:=1 to m do
begin
h:=(d+o) mod k;
inc(b[h]);
d:=d+a[j];
end;
end;
FOR i:=1 to k-1 do
write(b[i],' ');
writeln(b[0]);
end.
3 条评论
-
Am-Yx LV 9 @ 2009-08-10 14:45:12
...
216貌似是下标越界诶..
我在后一题也遇到过的.. -
2009-08-09 21:32:50@
我和你一样
我也是216,百思不得其解
-
2009-08-09 20:32:00@
Vijos管理员吃屎错误
- 1