Type: Default 1000ms 512MiB

[R42B]前导0

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.

时空限制

1S/512M

题目描述

给定一个位数 mm 的正整数 aa(无前导零),请通过在 aa 的前面补充若干个 0,将其变为一个长度为 nn 的数字串并输出。

格式

输入格式

第一行包含三个整数 n,m,an, m, a,具体含义如题意所示。

输出格式

输出一行一个字符串,表示补齐前导零后的 nn 位数字。

样例

样例输入 #1

3 1 2

样例输出 #1

002

样例解释 #1

原始数字为 22(长度为 11),目标长度为 33,因此需要在前面补两个 00,变为 002

样例输入 #2

3 3 357

样例输出 #2

357

样例输入 #3

20 19 1234567890123456789

样例输出 #3

01234567890123456789

数据规模

对于 100%100\% 的数据,1mn1001 \le m \le n \le 100,保证 aa 是一个没有前导 00mm 位正整数。

代码源挑战赛 Round 42

Not Attended
Status
Done
Rule
DMY
Start at
2025-12-19 20:00
End at
2025-12-19 21:30
Duration
1.5 hour(s)
Host
Partic.
440