优质题解 蓝桥杯算法提高VIP-计算质因子(C语言) 摘要:解题思路:①判断i是否为n的因数②判断i是否为质数注意事项:最大的因子不会超过n的一半,所以找因子的时候i的范围可以限定在[2,n/2]减少循环的次数参考代码:#include <stdio.h> …… 题解列表 2022年03月09日 0 点赞 0 评论 1668 浏览 评分:9.9
不会tle的代码 摘要:``` #include #include #include using namespace std; const int N = 50005; int stone[N]…… 题解列表 2022年03月09日 0 点赞 0 评论 629 浏览 评分:3.0
做题记录2022.3.9(ac:100%) 摘要:解题思路:模拟题目描述的蚂蚁行动规则注意事项:参考代码:m, n = map(int, input().strip().split()) matrix = [] for i in range(m)…… 题解列表 2022年03月09日 0 点赞 0 评论 493 浏览 评分:0.0
蓝桥杯2014年第五届真题-兰顿蚂蚁py暴力求解 摘要:参考代码:m,n = map(int,input().split())li = []for i in range(m): li.append(list(map(int,input().s…… 题解列表 2022年03月09日 0 点赞 0 评论 404 浏览 评分:0.0
小九九,简单粗暴 摘要:解题思路:因为他要求是写出”小九九“所以简单粗暴注意事项:不要忘加”<<endl;“参考代码:#include<bits/stdc++.h> using namespace std; int ma…… 题解列表 2022年03月09日 0 点赞 0 评论 449 浏览 评分:6.7
2026: 糖块粘合 摘要:解题思路:注意事项:注意糖块融合后形成的糖块和后面一个糖块可以融合参考代码:#include<bits/stdc++.h> using namespace std; int f(int x[][3…… 题解列表 2022年03月09日 0 点赞 0 评论 391 浏览 评分:0.0
质因数分解 摘要:解题思路:先求出一个质数,再用输入那个数去除以求出来的质数,就得到了另一个质数,再用两个数进行比较,保留大的数注意事项:参考代码:#include<iostream> #include<cmath>…… 题解列表 2022年03月09日 0 点赞 1 评论 825 浏览 评分:9.9
1688题解python 摘要:解题思路:a,b和c的类型不同,但必须在同一行输入,所以先把A,B,C输入为同一类型,在第二行再把C改成整数型注意事项:参考代码:a,b,c=list(map(str,input().split())…… 题解列表 2022年03月09日 0 点赞 0 评论 488 浏览 评分:9.9
写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,i; char str[51]; gets(str); m=st…… 题解列表 2022年03月09日 0 点赞 0 评论 490 浏览 评分:0.0
编写题解 1143: C语言训练-素数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdio.h>using namespace std;int main(){ int m; bool …… 题解列表 2022年03月09日 0 点赞 0 评论 426 浏览 评分:0.0