p型编码
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.
【题目描述】
请写出一个数字的p型编码串。例如:122344111可被描述为"1个1、2个2、1个3、2个4、3个1",因此我们说122344111的p型编码串为1122132431;类似的道理,101可以用来描述1111111111;00000000000可描述为"11个0",因此它的p型编码即为110;100200300可描述为"1个1、2个 0、1个2、2个0、1个3、2个0",因此它的p型编码串为112012201320。
【输入】
输入仅一行,数字长度为1000。
【输出】
输出该数字对应的p型编码串。
【输入样例】
122344111
【输出样例】
1122132431
【来源】
一本通在线评测
赛后自觉更正错题
- Status
- Done
- Rule
- IOI
- Problem
- 7
- Start at
- 2024-11-15 18:30
- End at
- 2024-11-15 21:30
- Duration
- 3 hour(s)
- Host
- Partic.
- 18