https://codeforces.com/problemset/problem/489/C You have a positive integer m and a non-negative integer s. Your task is to find the smallest and the largest of the numbers that have length ...
我写的复杂一点,思路找到一个比它小 中最大的符合条件的数/ 比它大最小的符合条件的数,看那个跟原值接近 # -*- coding:utf-8 -*- t=input("") t=int(t) a=[] def bignum(...