Run ID:154312
提交时间: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; }