小南解题-- 明明的随机数--64ms 摘要:a=int(input())b=set(map(int,input().split()))b=list(b)b.sort()print(len(b))for i in b: print(i,en…… 题解列表 2022年08月26日 0 点赞 0 评论 137 浏览 评分:0.0
明明的随机数(Python代码) 3行完事 附解题思路 摘要:## 解题思路: 首先使用 ***列表推导式*** 来进行把 ***input().split()*** 分段后的列表元素转为 **int类型**, 接着使用 ***set()*** 直接转为…… 题解列表 2022年02月23日 0 点赞 0 评论 560 浏览 评分:9.9
明明的随机数 摘要:n=int(input()) list1=list(map(int,input().split())) list1=list(set(list1)) list1.sort() print(le…… 题解列表 2022年02月09日 0 点赞 0 评论 228 浏览 评分:9.9
1165: 明明的随机数 摘要:解题思路:注意事项:参考代码:n = int(input()) l=set(map(int,input().split())) l=list(l) l.sort() print(len(l))…… 题解列表 2022年02月03日 0 点赞 0 评论 103 浏览 评分:0.0
明明的随机数-python简单解决 摘要:1、用map()高阶函数解决输入问题; 2、使用集合特性去重; 3、列表函数直接排序; ```python n = int(input()) l = set(map(int, input()…… 题解列表 2021年06月18日 0 点赞 0 评论 364 浏览 评分:0.0
python解决明明的随机数 摘要:解题思路:注意虽然题上说“明明要生成随机数”,但是实际上并没有生成随机数,需要理解题意。注意事项:参考代码:n = int(input()) a = eval(input().replace(…… 题解列表 2021年03月21日 0 点赞 0 评论 389 浏览 评分:2.0
【明明的随机数】-题解(Python代码) 摘要:思路解析: 1、用map()高阶函数解决输入问题; 2、使用集合特性去重; 3、列表函数直接排序; 4、注意不输出最后一个空格; ```python #明明的随机数.py …… 题解列表 2019年09月02日 0 点赞 0 评论 869 浏览 评分:5.0