110 条题解

  • 0
    @ 2008-09-24 19:12:20

    编译通过...

    ├ 测试数据 01:答案错误... ├ 标准行输出

     ├ 错误行输出

    ├ 测试数据 02:答案错误... ├ 标准行输出

     ├ 错误行输出

    ├ 测试数据 03:运行超时...

    ├ 测试数据 04:运行超时|格式错误...

    ├ 测试数据 05:运行超时...

    ├ 测试数据 06:运行超时...

    ├ 测试数据 07:运行超时...

    ├ 测试数据 08:运行超时...

    ├ 测试数据 09:运行超时...

    ├ 测试数据 10:运行超时...

    ---|---|---|---|---|---|---|---|-

    Unaccepted 有效得分:0 有效耗时:0ms

    var

    t,i,j:longint; x,y,m,n,l:qword;

    begin

    readln(x,y,m,n,l);

    if m=n then begin write('Impossible');halt;end;

    if m>n

    then begin

    t:=y-x;

    j:=m-n;

    repeat

    if t-1000000*j>=0

    then begin inc(i,1000000);t:=t-1000000*j;end

    else if t-100000*j>=0

    then begin inc(i,100000);t:=t-100000*j;end

    else if t-10000*j>=0

    then begin inc(i,10000);t:=t-10000*j;end

    else if t-1000*j>=0

    then begin inc(i,1000);t:=t-1000*j;end

    else

    if t-100*j>=0

    then begin inc(i,100);t:=t-100*j;end

    else begin inc(i); t:=t-j; end;

    until t=0

    then begin inc(i,1000000);t:=t-1000000*j;end

    else if t-100000*j>=0

    then begin inc(i,100000);t:=t-100000*j;end

    else if t-10000*j>=0

    then begin inc(i,10000);t:=t-10000*j;end

    else if t-1000*j>=0

    then begin inc(i,1000);t:=t-1000*j;end

    else

    if t-100*j>=0

    then begin inc(i,100);t:=t-100*j;end

    else begin inc(i); t:=t-j; end;

    until t

  • 0
    @ 2008-09-23 22:23:43

    就是解同余方程了,x,y,m,n居然还可以比L大??害得我开始只有90分,对输入modL才AC。

  • 0
    @ 2008-09-23 20:25:12

    编译通过...

    ├ 测试数据 01:运行超时...

    ├ 测试数据 02:运行超时...

    ├ 测试数据 03:答案正确... 0ms

    ├ 测试数据 04:答案正确... 0ms

    ├ 测试数据 05:运行超时...

    ├ 测试数据 06:运行超时...

    ├ 测试数据 07:运行超时...

    ├ 测试数据 08:运行超时...

    ├ 测试数据 09:运行超时...

    ├ 测试数据 10:运行超时...

    ---|---|---|---|---|---|---|---|-

    Unaccepted 有效得分:20 有效耗时:0ms

    var

    m,n,l,t,x,y:longint; i,j:qword;

    begin

    readln(x,y,m,n,l);

    i:=x;

    j:=y;

    if m=n then begin write('Impossible');halt;end;

    repeat

    inc(t);

    i:=i+m;

    j:=j+n;

    if i>l then i:=i-l;

    if j>l then j:=j-l;

    until i=j;

    write(t);

    end.

  • 0
    @ 2008-09-23 12:53:09

    sTO 膜拜LinBS天牛 ORz

  • 0
    @ 2008-09-23 12:47:05

    编译通过...

    ├ 测试数据 01:答案正确... 0ms

    ├ 测试数据 02:答案正确... 0ms

    ├ 测试数据 03:答案正确... 0ms

    ├ 测试数据 04:答案正确... 0ms

    ├ 测试数据 05:答案正确... 0ms

    ├ 测试数据 06:答案正确... 0ms

    ├ 测试数据 07:答案正确... 0ms

    ├ 测试数据 08:答案正确... 0ms

    ├ 测试数据 09:答案正确... 0ms

    ├ 测试数据 10:答案正确... 0ms

    ---|---|---|---|---|---|---|---|-

    Accepted 有效得分:100 有效耗时:0ms

    sTO 膜拜LinBS天牛 ORz

  • 0
    @ 2008-09-13 21:52:00

    无语……竟错在输出上……

    还碰上了vijos卡的时候~

    编译通过...

    ├ 测试数据 01:答案正确... 0ms

    ├ 测试数据 02:答案正确... 0ms

    ├ 测试数据 03:答案正确... 0ms

    ├ 测试数据 04:答案正确... 0ms

    ├ 测试数据 05:答案正确... 9ms

    ├ 测试数据 06:答案正确... 1041ms

    ├ 测试数据 07:答案正确... 41ms

    ├ 测试数据 08:答案正确... 0ms

    ├ 测试数据 09:答案正确... 0ms

    ├ 测试数据 10:答案正确... 0ms

    ---|---|---|---|---|---|---|---|-

    Accepted 有效得分:100 有效耗时:1091ms

    这种时间都出来了……

  • 0
    @ 2008-08-16 09:32:43

    开始的时候以为最长1000位

    RE了好久

  • 0
    @ 2007-12-09 17:27:50

    ├ 测试数据 01:答案错误...

    ├ 测试数据 02:答案正确... 0ms

    ├ 测试数据 03:答案正确... 0ms

    ├ 测试数据 04:答案正确... 0ms

    ├ 测试数据 05:答案错误...

    ├ 测试数据 06:答案错误...

    ├ 测试数据 07:答案错误...

    ├ 测试数据 08:答案错误...

    ├ 测试数据 09:答案错误...

    ├ 测试数据 10:答案错误...

  • 0
    @ 2007-11-14 13:58:50

    他这里的经度是东经还是西经啊??!!!!

  • 0
    @ 2007-11-12 12:47:01

    是不是要把经度和长度换算一下

  • 0
    @ 2007-11-03 15:48:03

    做不来啊!!!

  • 0
    @ 2007-10-30 19:49:38

    康熙的挚友:衣衫褴褛、闻鼠起舞、蟑螂为伴...

    康熙也太不厚道了吧。。。。

  • 0
    @ 2007-10-15 20:35:26

    编译通过...

    ├ 测试数据 01:答案正确... 0ms

    ├ 测试数据 02:答案正确... 0ms

    ├ 测试数据 03:答案正确... 0ms

    ├ 测试数据 04:答案正确... 0ms

    ├ 测试数据 05:答案正确... 0ms

    ├ 测试数据 06:答案正确... 0ms

    ├ 测试数据 07:答案正确... 0ms

    ├ 测试数据 08:答案正确... 0ms

    ├ 测试数据 09:答案正确... 0ms

    ├ 测试数据 10:答案正确... 0ms

    ---|---|---|---|---|---|---|---|-

    Accepted 有效得分:100 有效耗时:0ms

    我是第272个。。。。。。回文~~

  • 0
    @ 2007-10-04 19:50:44

    哇哇哇!!!!!!!!!!!!!!地球本来不是圆的,被我揉的!

  • 0
    @ 2007-09-23 23:39:24

    地球好像是圆的。。。

  • 0
    @ 2007-09-21 10:26:54

    诡异的最后一组数据把我给WA了

  • 0
    @ 2007-09-11 18:27:51

    m(x+y)

  • 0
    @ 2007-08-27 18:45:57

    extended_gcd

  • 0
    @ 2007-08-25 23:53:58

    用exten_gcd解线性同余模方程。

  • 0
    @ 2007-08-23 09:24:11

    只是一个稍微复杂点的追击问题而已

信息

ID
1009
难度
8
分类
数论 点击显示
标签
递交数
6993
已通过
1057
通过率
15%
被复制
28
上传者