pascal求助

P5315 头像上传

@[TCZN](/space/show?uid=108361) ~~只会c++和一点python~~
by 我不认识你 @ 2019-05-02 15:02:24


帮不了,在下c党
by songyihang @ 2019-05-02 15:19:43


~~C党路过~~
by Isprime @ 2019-05-02 15:31:50


码风过于诡异
by Limit @ 2019-05-02 15:33:58


@[Sxy_Limit](/space/show?uid=86625) 什么叫诡异
by TCZN @ 2019-05-02 15:46:32


为什么写的这么复杂啊 ```pascal var n,a,b,i,l,g:longint; begin readln(n,l,g); for i:=1 to n do begin read(a,b); while (a>g) or (b>g) do begin a:=a>>1; b:=b>>1; end; if (a<l) or (b<l) then writeln('Too Young') else if (a<>b) then writeln('Too Simple') else writeln('Sometimes Naive'); end; end. ``` @[TCZN](/space/show?uid=108361)
by Celestial_Scarlet @ 2019-05-02 15:57:39


如果按你这么写的话, $\text{Too Young}$ 的判断在循环里也要执行
by Celestial_Scarlet @ 2019-05-02 15:59:45


@[baoyu](/space/show?uid=93465) 你这个语言挺新颖啊。。。
by TCZN @ 2019-05-02 16:03:27


@[baoyu](/space/show?uid=93465) 对呀
by TCZN @ 2019-05-02 16:04:37


@[TCZN](/space/show?uid=108361) 哦,我是说在 $\text{while}$ 循环里也要执行,抱歉
by Celestial_Scarlet @ 2019-05-02 16:05:15


| 下一页