编写题解 1144: C语言训练-自守数问题(Python 超简) 摘要:通过endswith这个函数来判断平方后的数的末尾是否含有自己for i in range(200001): if str(pow(i, 2)).endswith(str(i)): …… 题解列表 2022年04月21日 0 点赞 0 评论 780 浏览 评分:9.9
编写题解 1148: C语言训练-计算1977!*(人生苦短,我用python) 摘要:第一种方法:使用python的math库中的factorial函数,这个函数可以直接求一个数的阶乘(代码最少)import math print(math.factorial(1977))第二种方法…… 题解列表 2022年04月21日 0 点赞 0 评论 564 浏览 评分:6.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 评论 1008 浏览 评分:8.7
思考量不大,限制好约束条件推出循环即可 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,t,n,sum,flag; scanf("%d",&n); int m[n]…… 题解列表 2022年04月21日 0 点赞 0 评论 394 浏览 评分: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 评论 385 浏览 评分: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 评论 379 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:解题思路:注意事项:参考代码:t,string=map(str,input().split()) if t=='1': print() print(string)…… 题解列表 2022年04月22日 0 点赞 0 评论 371 浏览 评分: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 评论 318 浏览 评分:0.0
注意小于十时的细节即可 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d %d",&a,&b)!=EOF&&a!=0&&b…… 题解列表 2022年04月22日 1 点赞 0 评论 374 浏览 评分:0.0
C++演示答案 摘要:解题思路: 注意越界判断以及方向符号改变注意事项:参考代码:#include<iostream>using namespace std;const int inf = 1e3;int M,N;int …… 题解列表 2022年04月22日 0 点赞 0 评论 526 浏览 评分:9.9