1 条题解
-
2
壹look这题就肥肠简单,用随意用一种排序就出来了:
#include <bits/stdc++.h> using namespace std; #define ll long long char c[4]; void ych(ll &x) { int f = 1; x = 0; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } while (ch >= '0' && ch <= '9') { x = x * 10 + ch - '0'; ch = getchar(); } x *= f; } int main() { for (int i = 1; i <= 3; i++) { ych(a[i]); } sort(c + 1, c + 4); for (int i = 1; i <= 3; i++) { cout << c[3] << c[2] << c[1]; break; } return 0; } //470
- 1
信息
- ID
- 30047
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 10
- 标签
- 递交数
- 4
- 已通过
- 3
- 上传者