Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154521 万骏博 比较大小 C++ Accepted 1 MS 268 KB 316 2026-05-30 14:53:02

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int a, b; int *p1, *p2, *p; cin >> a >> b; p1 = &a; p2 = &b; if (a < b) { p = p1; p1 = p2; p2 = p; } cout << *p1 << " " << *p2 << endl; return 0; }