切换到宽版
  • 17813阅读
  • 11回复

这是什么变态数据! [复制链接]

上一主题 下一主题
离线勇气les
 
只看楼主 倒序阅读 0 发表于: 2006-08-03
1256274 15:52:30
3 Aug 2006 les 1057 Pascal Time limit exceeded 7 2.031 194 KB
离线r134a
只看该作者 1 发表于: 2006-08-03
你用掐时撒!
.


祝大家明年NOIP大获全盛!


.
离线r134a
只看该作者 2 发表于: 2006-08-03
I got Compilation error or Crash (at #test 5 access violation),but my program is so quickly!
.


祝大家明年NOIP大获全盛!


.
离线r134a
只看该作者 3 发表于: 2006-08-03
一个在线题库,但题型不象USACO那样分级排列~~~so~~做起来很自然~

但不适合专题训练~
.


祝大家明年NOIP大获全盛!


.
离线r134a
只看该作者 4 发表于: 2006-08-03
引用第2楼bluetear2006-08-03 21:20发表的“”:
I got Compilation error or Crash (at #test 5 access violation),but my program is so quickly!


偶的弱程序:
用的类似背包问题的算法。



var tt,top,k,b:int64;
  i,j,x,y:longint;
  q:int64;
  a:array[0..32]of longint;
  f:packed array[0..1000000000]of boolean;
  total:packed array[0..1000000000]of byte;

begin
read(x,y,k,b);
q:=1;
top:=0;
repeat
a[top]:=q;

inc(top);
q:=q*b;

until q>y;
dec(top);

f[0]:=true;
total[0]:=0;

tt:=0;

if k<>1 then
for i:=0 to top do
begin
  for j:=y downto a do
  if total[j]<k then

  if ((f[j]=false)and(f[j-a]=true))
    or((f[j]=true)and(f[j-a]=true)
    and(total[j-a]+1<total[j])) then
    begin
    f[j]:=true;
    total[j]:=total[j-a]+1;
    if (total[j]=k)and(j>=x) then inc(tt);

    end;
end
else
begin
for i:=0 to top do
  if a in [x..y] then inc(tt);
end;

writeln(tt);

end.
.


祝大家明年NOIP大获全盛!


.
离线archimedes

只看该作者 5 发表于: 2006-08-19
引用第2楼北极星的眼泪2006-08-03 21:20发表的“”:
but my program is so quickly!

英语语法错误
but my program is so quick 或 but my program runs so quickly
离线r134a
只看该作者 6 发表于: 2006-08-20
Thanks for the MS!
.


祝大家明年NOIP大获全盛!


.
离线archimedes

只看该作者 7 发表于: 2006-08-22
What is MS?
离线r134a
只看该作者 8 发表于: 2006-08-25
引用第8楼sammy3122006-08-22 10:23发表的“”:
What is MS?



MS=message
.


祝大家明年NOIP大获全盛!


.
离线kongdeben
只看该作者 9 发表于: 2006-10-05
递推的效果
sbzlyessit 1057 Pascal Accepted
0.001 156 KB
快速回复
限100 字节
 
上一个 下一个