救救我,大佬们

P1152 欢乐的跳

1.改成`shu[1123],cha[1123],pan[1123]` 2.桶排不用`sort` 3.直接判断`pan[i]!=1`即可
by BeyondHeaven @ 2019-03-30 19:26:15



by hater @ 2019-03-30 19:27:02


@[Naruto_steven](/space/show?uid=140034) 则输出"Jolly",否则输出"Not jolly"。 ------------------------------------ 这不是大写吗
by chongxinzailaile @ 2019-03-30 19:27:04


顶楼上
by hater @ 2019-03-30 19:27:11


@[HN_0917](/space/show?uid=77609) shu[1123],cha[1123],pan[1123]???
by Naruto_steven @ 2019-03-30 19:27:23


这个错误有点尴尬~~~
by hater @ 2019-03-30 19:27:41


数组大小只能为常量 即`const int`或`constexpr`类型
by BeyondHeaven @ 2019-03-30 19:29:26


在`cha[i]=abs(shu[i]-shu[i+1])`的时候判一下`0<cha[i]&&cha[i]<n`,不然`pan[]`要炸
by BeyondHeaven @ 2019-03-30 19:31:45


@[HN_0917](/space/show?uid=77609) 数据有负数
by Naruto_steven @ 2019-03-30 19:32:26


@[Naruto_steven](/space/show?uid=140034) 判`cha[]`不是判`shu[]`
by BeyondHeaven @ 2019-03-30 19:34:39


上一页 | 下一页