def pat1006(n):
res = ""
for i in range(n % 10):
res += str(i + 1)
n //= 10
for i in range(n % 10):
res = "S" + res
n //= 10
for i in range(n % 10):
res = "B" + res
return res
if __name__ == '__main__':
n = int(input())
print(pat1006(n))
PAT (Basic Level) Practice 1006 换个格式输出整数
最新推荐文章于 2024-08-15 01:55:01 发布