Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
101550 | 罗恩祥 | 三实数排序 | C++ | 通过 | 100 | 0 MS | 248 KB | 249 | 2023-09-09 10:26:10 |
#include <iostream> #include <algorithm> using namespace std; int main() { double lst[4]; double 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]; }