版本比较
题解:P14582 [LNCPC 2025] 被抠的键盘
正文
增加 1 行删除 1 行
7 行未改动89101112121314151682 行未改动7 行未改动
不难发现,答案可以写成如下形式:
$$ans = t\times \underbrace{11\cdots 1}_{x个} = t\cdot \frac{10^x - 1}{9} ans = t\times \underbrace{11\cdots 1}_{x个} = t\cdot \frac{10^x - 1}{9}$$
等价于
82 行未改动