除了第一个位点,其它全re??

P1177 【模板】排序

为什么如此复杂?用SORT不就行了?
by Sunlight9 @ 2017-12-02 16:23:30


```cpp #include<iostream> #include<algorithm> using namespace std; int n,a[69696969]; int main() { cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; sort(a+1,a+n+1); for(int i=1;i<=n;i++) cout<<a[i]; return 0; } ```
by Sunlight9 @ 2017-12-02 17:10:37


第十二行改为 cout<<a[i]<<" ";
by Sunlight9 @ 2017-12-02 17:13:33


@[灵秀](/space/show?uid=43383) 那你很棒棒哦
by Hono @ 2017-12-02 18:40:37


数组开小了啊 N≤100000 @[殇祭](/space/show?uid=58832)
by Hono @ 2017-12-02 18:51:37


@[保登心爱](/space/show?uid=27115) 谢DALAO指点
by Sunlight9 @ 2017-12-02 19:22:42


这个手写快排那里有问题?
by 殇祭 @ 2017-12-06 18:34:48


|