Python: How do you scan duplicate values and combine their rightmost digits?

后端 未结 0 1104
盖世英雄少女心
盖世英雄少女心 2020-11-30 10:03

Given the input:

12 14 15 16

I want the output to look like

1 2456

and not

1 2
1 4
1 5 
1 6


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题