蓝桥杯算法提高VIP-大数加法-题解(Python代码) 摘要: 这道题感觉用python做就失去了意义。参考代码:print(int(input())+int(input()))…… 题解列表 2020年09月28日 0 点赞 0 评论 382 浏览 评分:9.9
蓝桥杯算法提高VIP-复数求和-题解(Python代码) 摘要:参考代码:n = int(input()) s,x = 0,0 for _ in range(n): a,b = map(int,input().split()) s += a…… 题解列表 2020年09月28日 0 点赞 0 评论 604 浏览 评分:9.9
[编程入门]宏定义之找最大数-题解(Python代码) 摘要:如果只是为了答题,那这样也彳亍a,b,c=map(int,input().split()) s=max(a,b,c) print("%.3f" % s) print("%.3f" % s)…… 题解列表 2020年09月28日 0 点赞 0 评论 662 浏览 评分:0.0
蓝桥杯基础练习VIP-2n皇后问题-题解(Python代码)通俗易懂 摘要: 这题是八皇后问题的变形、八皇后是放一个皇后、本题2n皇后是放两个皇后。解题思路: 我们可以先放好一个皇后后再放另一个皇后。在图里可以放皇后的格子为1,所以我们可以将不同皇…… 题解列表 2020年09月28日 0 点赞 2 评论 1564 浏览 评分:9.3
[编程入门]自定义函数之字符提取-题解(Python代码) 摘要:解题思路:注意事项:参考代码:str = ['a', 'e', 'i' ,'o', 'u']def main(list)…… 题解列表 2020年09月27日 0 点赞 0 评论 689 浏览 评分:9.5
[编程入门]分段函数求值-题解(双题解,Python代码) 摘要:题解一: ```python x=int(input()) if x=1 and x…… 题解列表 2020年09月26日 0 点赞 1 评论 1410 浏览 评分:6.0
[编程入门]三个数最大值-题解(双题解,Python代码) 摘要:题解一: ```python a, b, c= map(int,input().split()) #表示的是一次能够输入多个值,依照空格进行分割。(输入不够三个数则不能按回车) sum = […… 题解列表 2020年09月26日 0 点赞 2 评论 2768 浏览 评分:8.8
[编程入门]第一个HelloWorld程序!-题解(双题解,Python代码) 摘要:题解一: ```python print("**************************") print("Hello World!") print("****************…… 题解列表 2020年09月26日 0 点赞 0 评论 1497 浏览 评分:7.8
[竞赛入门]简单的a+b-题解(双题解,Python代码) 摘要:题解一: ```python while True: #while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用…… 题解列表 2020年09月26日 0 点赞 0 评论 2748 浏览 评分:8.7
蓝桥杯算法提高VIP-贪吃的大嘴-题解(Python代码) 摘要:解题思路: 多重背包的变形,背包的重量为美味程度,价值为一块蛋糕。参考代码:m,n = map(int,input().split()) wv = [list(map(int,input().…… 题解列表 2020年09月23日 0 点赞 0 评论 730 浏览 评分:9.9