| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139205 | 万骏博 | 22插入数据 | C++ | Accepted | 0 MS | 260 KB | 374 | 2025-12-04 21:22:25 |
#include <bits/stdc++.h> using namespace std; long long n,o[103],p=0,q=0; int main(){ scanf("%lld",&n); for(int j=1;j<=n;j++){ scanf("%lld",&o[j]); } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ q=o[j]; o[j]=max(o[j],o[j+1]); o[j+1]=min(q,o[j+1]); } } for(int i=1;i<=n;i++){ printf("%lld ",o[i]); } return 0; }