正文
增加 26 行删除 16 行
1234567891011121314151617181920212223242526272829303132333435363728 行未改动66676869707172737481 行未改动156157158159160161162163164125 行未改动全部展开290291292293294295296297298299300238 行未改动全部展开539540541542543544545546547本文同步发布至我的[博客](https://hsl-beat.github.io/2025/11/15/Atcoder%20ABC433%E6%B8%B8%E8%AE%B0/)# 题目## A - Countdown这是一道简单的数学题。从 $n$ 开始倒数到 $0$,需要的操作次数就是 $n$ 本身。所以答案就是 $n$。### 题目描述给你一个整数 $n$ 。求从 $n$ 开始倒数到 $0$ 所需的操作次数。### 思路语法题### 代码```#include<bits/stdc++.h>using namespace std;#define int long longsigned main(){int n;cin >> n;cout << n;return 0;}```---## B.Permute to Minimize### 题目描述28 行未改动return 0;}```---## C.Candy Tribulation### 题目描述81 行未改动return 0;}```---## D.Suddenly, A Tempest### 题目描述125 行未改动全部展开return 0;}```---## E.Clamp### 题目描述给你一个长度为 $N$ 的整数序列 $A=(A_1, A_2, \dots, A_N)$ 。238 行未改动全部展开return 0;}```---# 复盘没有 哈哈哈123456789101112131415161718192021222324252627282930313233343536373839404142434445464728 行未改动76777879808182838481 行未改动166167168169170171172173174125 行未改动全部展开300301302303304305306307308309310238 行未改动全部展开549550551552553554555556557本文同步发布至我的[博客](https://hsl-beat.github.io/2025/11/15/Atcoder%20ABC433%E6%B8%B8%E8%AE%B0/)# 题目## A - Permute to Maximize### 题目描述给你介于 $1$ 和 $9$ 之间的三个数字 $A,B,C$ 。求将 $A,B,C$ 按任意顺序排列并连接而成的所有 $3$ 个整数中的最大值。### 思路语法题### 代码```#include<bits/stdc++.h>#define int long longusing namespace std;signed main(){string s;cin >> s;sort(s.begin(), s.end());if (s[0] == '0') {for (int i = 1; i < s.length(); i++) {if (s[i] != '0') {swap(s[0], s[i]);break;}}}cout << s;return 0;}```---## B.Permute to Minimize### 题目描述28 行未改动return 0;}```---## C.Candy Tribulation### 题目描述81 行未改动return 0;}```---## D.Suddenly, A Tempest### 题目描述125 行未改动全部展开return 0;}```---## E.Clamp### 题目描述给你一个长度为 $N$ 的整数序列 $A=(A_1, A_2, \dots, A_N)$ 。238 行未改动全部展开return 0;}```---# 复盘没有 哈哈哈