Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147530 于墨轩 比较三个数大小II C++ Accepted 0 MS 208 KB 282 2026-02-05 22:24:49

Tests(1/1):


Code:

#include <stdio.h> int main() { int a, b, c, temp; scanf("%d %d %d", &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;} printf("%d %d %d\n", a, b, c); return 0; }