编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#36 #1. 快速排序 Accepted 100 30 ms 1152 K C++ 17 (Clang) / 689 B new_user_4 2023-09-22 12:53:28
显示原始代码
#include <bits/stdc++.h>
#define int long long

#define endl '\n'


#define rep(i, l, b) for (int i = l; i <= b; i++)

#define lep(i, b, l) for (int i = b; i >= l; i--)


const int N = 1e6 + 10, INF = 0x3f3f3f3f3f3f, MOD = 1e7 + 7, B = 13331;

using namespace std;

int n, m;
int a[N];

void solve() {
    cin >> n;
    rep(i, 1, n) cin >> a[i];
    sort(a + 1, a + 1 + n);
    rep(i, 1, n) cout << a[i] << " ";
}

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    // freopen("2.in","r",stdin);
    // freopen("2.out","w+",stdout);
    int _ = 1;
    // cin>>_;
    while (_--) {
        solve();
    }

    return 0;
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:30 ms
内存:1152 KiB

输入文件(2.in

100000
548813502 592844616 715189364 844265744 602763370 857945619 544883177 847251737 423654796 62
<988624 bytes omitted>

答案文件(2.out

4010 20029 24208 32576 46285 55350 60569 72453 73696 99348 140054 145665 150375 163096 166440 186713
<988615 bytes omitted>

用户输出

4010 20029 24208 32576 46285 55350 60569 72453 73696 99348 140054 145665 150375 163096 166440 186713 187112 200094 201277 206954
<988587 bytes omitted>

系统信息

Exited with return code 0