Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
101599 | 曾煦翔 | 三实数排序 | C++ | Wrong Answer | 75 | 0 MS | 260 KB | 306 | 2023-09-09 11:12:03 |
#include <iostream> using namespace std; int a[100005]; int main() { for(int i = 1;i <= 3;i++) cin >> a[i]; for(int i = 1;i <= 2;i++) { for(int j = i + 1;j <= 3;j++) { if(a[i] > a[j]) swap(a[i] , a[j]); } } for(int i = 1;i <= 3;i++) cout << a[i] << " "; return 0; }