Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140946 李折曦 19斯诺克比赛 C++ Wrong Answer 0 MS 280 KB 345 2025-12-20 15:00:02

Tests(0/5):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n; int a[200000]; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int j=1;j<n;j++){ for(int i = 1;i<n;i++){ if(a[i]>a[i+1]){ int temp=a[i]; a[i]=a[i+1]; a[i+1]=temp; } } } for(int i = 1;i<=n;i++){ cout<<a[i]<<" "; } return 0; }


Run Info:

------Input------
5 1 1 1 3 1 2
------Answer-----
84
------Your output-----
1 1 1 1 3