蓝桥杯算法训练VIP-比较字符串-python 摘要:解题思路:注意题目所给信息,任一字符串都不是彼此的前缀,意思是如果能够遍历完字符串那么必定相等,如果不能,必定存在某个不相同的字符串,不可能出现遍历完其中一个字符串,但仍然找不到不同字符的情况,即短的…… 题解列表 2023年01月10日 0 点赞 0 评论 400 浏览 评分:0.0
C++ 贪心+双指针 O(N)复杂度 摘要:``````````cpp #include using namespace std; #define ll long long //纪念品分组 namespace test29 { …… 题解列表 2023年01月10日 0 点赞 0 评论 465 浏览 评分:9.9
二级C语言-最小绝对值(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int i,a[100],min,t,index; for(i=…… 题解列表 2023年01月10日 0 点赞 0 评论 313 浏览 评分:8.0
具有abcd=(ab+cd)2性质的四位数简单循环代码和(简单粗暴)的方法 摘要:解题思路:分别求出abcd的值后判断 直接输出 注意事项:参考代码:(1)#include<stdio.h>#include<math.h>int …… 题解列表 2023年01月10日 0 点赞 0 评论 366 浏览 评分:9.9
[编程入门]打印图案 摘要:```cpp #include using namespace std; int main() { cout…… 题解列表 2023年01月10日 0 点赞 0 评论 794 浏览 评分:9.9
指针入门_c语言求对角线矩阵和 摘要:#include <stdio.h> int main() { int a[3][3]; int *p = a[0]; for(int i = 0; i < 9;…… 题解列表 2023年01月10日 0 点赞 0 评论 229 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:```cpp #include using namespace std; int main() { string s; getline(cin,s); char …… 题解列表 2023年01月10日 0 点赞 0 评论 406 浏览 评分:9.9
2961: 最长单词2 摘要:```cpp #include using namespace std; int main() { int x,max=0,q,p; char ch[500]; …… 题解列表 2023年01月10日 0 点赞 0 评论 582 浏览 评分:9.9
二级C语言-自定义函数(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>double mypow(double x,long long n){ int i; double ans=1; for(i=0;i<…… 题解列表 2023年01月10日 0 点赞 0 评论 256 浏览 评分:9.9
【Python题解】蓝桥杯算法提高VIP-质因数 摘要:注意事项:while语句省去判断质数的过程,最后可用join方法输出。参考代码:n = int(input()) s = str(n)+'=' lis = [] for i in…… 题解列表 2023年01月10日 0 点赞 0 评论 303 浏览 评分:9.9