1044一行解(Python) 摘要:注意事项:这种解法同时适用于更多字符串输入的情形参考代码:import sysfor data in sorted([data.strip() for data in sys.stdin]) : pr…… 题解列表 2022年11月05日 0 点赞 0 评论 593 浏览 评分:9.9
1043一行解(Python) 摘要:注意事项:可以参考一下其他人的一行解,体会其中的不同点参考代码:for data in [i for i in sorted(map(int, input().split()))] : print(d…… 题解列表 2022年11月05日 0 点赞 0 评论 420 浏览 评分:9.9
采药python,不知哪里错了,请求支援 摘要:解题思路:注意事项:参考代码:各位大神帮我看看哪里有问题,实在找不出哪里错了。。。。。我测试的数据都成功t,m = map(int,input().split())s = []h = 0sum = 0…… 题解列表 2022年11月04日 0 点赞 0 评论 583 浏览 评分:9.9
解决python代码 EOFERROR 摘要:解题思路:注意事项:参考代码:n=int(input())a=[]b=Truewhile b: try: x=input() if x!='': …… 题解列表 2022年11月04日 0 点赞 0 评论 695 浏览 评分:8.0
1016一行解(Python) 摘要:注意事项:强行一行,实际编程意义不大参考代码:for i in range(100, 999) : print(i) if sum(map(lambda x : x ** 3, list(map(in…… 题解列表 2022年11月04日 0 点赞 1 评论 687 浏览 评分:9.9
1018递归解法(Python) 摘要:注意事项:只关注上、下两数的关系即可参考代码:N = int(input())output = 0times = 0def count_sum(up_data, down_data) : glo…… 题解列表 2022年11月04日 0 点赞 0 评论 337 浏览 评分:0.0
1367基础解法(Python) 摘要:注意事项:引用sys.stdin来获取输入参考代码:import syslst_tableware = ['fork','chopsticks','bowl&#…… 题解列表 2022年11月04日 0 点赞 0 评论 374 浏览 评分:0.0
1023一行解(Python) 摘要:解题思路:略注意事项:虽然没用指定方法,但是秉持着解决问题为第一要务,还是记录一下吧参考代码:for data in sorted(list((map(int, input().split()))))…… 题解列表 2022年11月04日 0 点赞 0 评论 392 浏览 评分:0.0
1009一行解(Python) 摘要:解题思路:注意事项:lambda N是定义一个匿名函数,lambda 函数名:expression(表达式)等价于 def 函数名(参数): 函数体 return 返回值不追求简短不必刻意使用lamb…… 题解列表 2022年11月04日 0 点赞 0 评论 333 浏览 评分:0.0
1196一行解(Python) 摘要:解题思路:将空格替换为空('')注意事项:明确sys.stdin的用法参考代码:import sysfor line in sys.stdin :print(line.replace(…… 题解列表 2022年11月04日 0 点赞 0 评论 454 浏览 评分:9.9