hoblovski吧 关注:27贴子:864
  • 22回复贴,共1
网上只找到吉丽的Cpp标程,然后对拍
怎么比我快10倍?而且别人都是预处理TLE,我是根号的回答TLE,标解不就是我的么..
于是把吉丽的Cpp翻译成Pascal
然后比我慢2倍...
我还是把我的P翻译成Cpp交好了
完全无法理解的事件出现了,一定是电脑的问题.恩


1楼2014-04-18 23:52回复
    恩把int64改成longint之后强制转换类型
    就比吉丽快 5%
    BZOJ Pascal 第一A (虽然差352ms就TLE了)


    2楼2014-04-19 08:21
    回复
      orz


      3楼2014-09-29 09:06
      收起回复

        RT.


        4楼2014-10-11 20:14
        回复
          program testprogram;
          var a:string; n,b:longint;
          begin
          writeln(*Description:*);
          writeln(*When using,copy the batch file together with enter,Or there will be problems about timming*);
          writeln;
          writeln(*Input program name and the number of datas,one line for one*);
          readln(a,n);
          assign(output,*Check.bat*);
          rewrite(output);
          writeln(*@echo off*);
          writeln(*if "%1"=="" goto loop*);
          writeln(*copy *,a,*%1.in *,a,*.in >nul*);
          writeln(*echo Problem Test*);
          writeln(*echo Data %1*);
          writeln(*time<enter*);
          writeln(a);
          writeln(*time<enter*);
          writeln(*fc *,a,*.out *,a,*%1.ans*);
          writeln(*del *,a,*.in*);
          writeln(*del *,a,*.out*);
          writeln(*pause*);
          writeln(*goto end*);
          writeln(*:loop*);
          write(*for %%i in (*);
          for b:=1 to n do
          write(b,* *);
          write(*) do call %0 %%i*);
          writeln;
          writeln(*:end*);
          close(output);
          assign(output,*enter*);
          rewrite(output);
          writeln;
          close(output);
          end. {=====Created by Hoblovski}
          {=====Not reserving any rights}
          {=====I believe you understand English}
          高一写的了,不要喷代码风格以及没有缩进.


          5楼2014-10-18 17:49
          收起回复