Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
101599 | 曾煦翔 | 三实数排序 | C++ | 解答错误 | 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; }