版本比较
Atcoder ABC433游记
正文
增加 26 行删除 16 行
123253745678911101311121314151617181920212222232425262627282728293031323334353637383940414233434445464728 行未改动7677787970808182838481 行未改动166167168169160170171172173174125 行未改动全部展开300301302303294304305296306307308309310238 行未改动全部展开549550551552543553554555556557本文同步发布至我的[博客](https://hsl-beat.github.io/2025/11/15/Atcoder%20ABC433%E6%B8%B8%E8%AE%B0/)# 题目## A - Countdown
这是一道简单的数学题。从 $n$ 开始倒数到 $0$,需要的操作次数就是 $n$ 本身。
所以答案就是 $n$。# 题目
## A - Permute to Maximize
### 题目描述
给你一个整数 $n$ 。
求从 $n$ 开始倒数到 $0$ 所需的操作次数。给你介于 $1$ 和 $9$ 之间的三个数字 $A,B,C$ 。
求将 $A,B,C$ 按任意顺序排列并连接而成的所有 $3$ 个整数中的最大值。
### 思路
语法题
### 代码```#include<bits/stdc++.h>using namespace std;#define int long longusing namespace std;signed main(){ int n; cin >> n; cout << n; 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 ## E.Clamp
### 题目描述
给你一个长度为 $N$ 的整数序列 $A=(A_1, A_2, \dots, A_N)$ 。238 行未改动全部展开 return 0;}```
--- ---
# 复盘
没有 哈哈哈