注意小于十时的细节即可 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d %d",&a,&b)!=EOF&&a!=0&&b…… 题解列表 2022年04月22日 1 点赞 0 评论 472 浏览 评分:0.0
没啥亮点,正常思路.. 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,cnt=0; scanf("%d",&n); for(i=7;i<=n;…… 题解列表 2022年04月22日 0 点赞 0 评论 401 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:解题思路:注意事项:参考代码:t,string=map(str,input().split()) if t=='1': print() print(string)…… 题解列表 2022年04月22日 0 点赞 0 评论 460 浏览 评分:0.0
1558: 蓝桥杯算法提高VIP-色盲的民主 摘要:解题思路:注意事项:参考代码:n = int(input()) dic={} for i in range(n): a=input() if a not in dic: …… 题解列表 2022年04月21日 0 点赞 0 评论 461 浏览 评分:0.0
1557: 蓝桥杯算法提高VIP-聪明的美食家 摘要:解题思路:注意事项:参考代码:n=int(input()) ls=list(map(int,input().split())) dp=[1 for i in range(n)] for i in…… 题解列表 2022年04月21日 0 点赞 0 评论 459 浏览 评分:0.0
思考量不大,限制好约束条件推出循环即可 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,t,n,sum,flag; scanf("%d",&n); int m[n]…… 题解列表 2022年04月21日 0 点赞 0 评论 473 浏览 评分:0.0
编写题解 1157: 亲和数(python 较易懂) 摘要:m = int(input()) for i in range(m): a, b = map(int, input().split()) a_list = [i for i in…… 题解列表 2022年04月21日 0 点赞 0 评论 1089 浏览 评分:8.7
编写题解 1148: C语言训练-计算1977!*(人生苦短,我用python) 摘要:第一种方法:使用python的math库中的factorial函数,这个函数可以直接求一个数的阶乘(代码最少)import math print(math.factorial(1977))第二种方法…… 题解列表 2022年04月21日 0 点赞 0 评论 674 浏览 评分:6.0
编写题解 1144: C语言训练-自守数问题(Python 超简) 摘要:通过endswith这个函数来判断平方后的数的末尾是否含有自己for i in range(200001): if str(pow(i, 2)).endswith(str(i)): …… 题解列表 2022年04月21日 0 点赞 0 评论 864 浏览 评分:9.9
1554: 蓝桥杯算法提高VIP-素数求和 摘要:解题思路:注意事项:参考代码:n=int(input()) ls=[0 if i%2==0 else 1 for i in range(n+1)] ls[1],ls[2]=0,1 #print…… 题解列表 2022年04月21日 0 点赞 0 评论 446 浏览 评分:0.0