Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148488 kk20110529 比较三个数大小II C++ Accepted 0 MS 280 KB 335 2026-02-21 20:21:50

Tests(1/1):


Code:

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