题解 | 小红的“质数”寻找

小红的“质数”寻找

https://www.nowcoder.com/practice/0b98a50ea30e4a3a9fe08a46eeb5f7fc

nums = ["2", "3", "5", "5", "7", "7", "12", "12", "12"]
t = int(input().strip())
for _ in range(t):
    x = input().strip()
    print(nums[int(x[0]) - 1] + '0' * (len(x) - 1))

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务