| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154312 | 鲁博睿 | 比较三个数的大小 | C++ | Accepted | 1 MS | 268 KB | 501 | 2026-05-30 10:20:01 |
#include<bits/stdc++.h> using namespace std; int main() { int a, b, c; int *p1 = &a, *p2 = &b, *p3 = &c; cin >> a >> b >> c; if (*p1 < *p2) { int t = *p1; *p1 = *p2; *p2 = t; } if (*p1 < *p3) { int t = *p1; *p1 = *p3; *p3 = t; } if (*p2 < *p3) { int t = *p2; *p2 = *p3; *p3 = t; } cout << *p1 << " " << *p2 << " " << *p3 << endl; return 0; }