Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
101548 | 罗恩祥 | 三实数排序 | C++ | 解答错误 | 75 | 0 MS | 256 KB | 243 | 2023-09-09 10:24:49 |
#include <iostream> #include <algorithm> using namespace std; int main() { int lst[4]; int a,b,c; cin >> a >> b >> c; lst[0] = a; lst[1] = b; lst[2] = c; sort(lst,lst+3); cout << lst[0] << ' ' << lst[1] << ' ' << lst[2]; }