Type: Default 1000ms 256MiB

删数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

输入一个高精度的正整数n(长度小于或等于240位),去掉其中任意s个数字后剩下的数字按原左右次序将组成一个新的正整数。

编程对给定的n和s,寻找一种方案,使得剩下来的数字组成的新数最小。

输入

输入两行,第1行为1个正整数n,第2行为1个整数s。

输出

输出一行一个数,表示最后剩下的最小数。

178543
4
13

C++5月算法

Not Attended
Status
Done
Rule
OI
Problem
5
Start at
2025-5-29 20:00
End at
2025-5-30 16:00
Duration
1.5 hour(s)
Host
Partic.
6