shunfurh 于 2017.01.05 17:05 提问

Problem Description
Kiki likes traveling. One day she finds a magic lamp, unfortunately the genie in the lamp is not so kind. Kiki must answer a question, and then the genie will realize one of her dreams.
The question is: give you an integer, you are allowed to delete exactly m digits. The left digits will form a new integer. You should make it minimum.
You are not allowed to change the order of the digits. Now can you help Kiki to realize her dream?

Input
There are several test cases.
Each test case will contain an integer you are given (which may at most contains 1000 digits.) and the integer m (if the integer contains n digits, m will not bigger then n). The given integer will not contain leading zero.

Output
For each case, output the minimum result you can get in one line.
If the result contains leading zero, ignore it.

Sample Input
178543 4
1000001 1
100001 2
12345 2
54321 2

Sample Output
13
1
0
123
321

1个回答

caozhy      2017.01.05 23:54

kiki修改版qq魔法表情(200个表情)
kiki修改版qq魔法表情(200个表情)，内有详细说明。
HDU 2147kiki's game (巴什博弈)
kiki's game Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 40000/10000 K (Java/Others) Total Submission(s): 9213    Accepted Submission(s): 5512 Problem Description Recently kiki
java中的魔法数

HDU 2147 kiki's game （巴什博弈）
kiki's game Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 40000/1000 K (Java/Others) Total Submission(s): 5982    Accepted Submission(s): 3552 Problem Description Recently kiki h
HDOJ 2147 kiki's game(基础博弈)
kiki's game Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 40000/10000 K (Java/Others) Total Submission(s): 8480    Accepted Submission(s): 5053 Problem Description Recently kik
kiki's game（博弈）
kiki's game Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 40000/10000 K (Java/Others) Total Submission(s): 7836    Accepted Submission(s): 4654 Problem Description Recently kiki
hdu 2276 Kiki & Little Kiki 2

hdu 2113 很容易就PE的问题
Secret Number Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7370    Accepted Submission(s): 3126 Problem Description 有一天, KIKI 收到