Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145574 伊建润 比较三个数大小II C++ Accepted 0 MS 272 KB 402 2026-01-25 16:38:18

Tests(1/1):


Code:

#include <iostream> int main() { int a, b, c, temp; std::cin >> a >> b >> c; if (a > b) { temp = a; a = b; b = temp; } if (a > c) { temp = a; a = c; c = temp; } if (b > c) { temp = b; b = c; c = temp; } std::cout << a << " " << b << " " << c << std::endl; return 0; }