1584: 蓝桥杯算法训练VIP-判定字符位置 摘要:挨个用 find 找 a、e、i、o、u 的位置并保存,如果都没找到输出 0,找到了输出位置。#include <bits/stdc++.h> using namespace std; int…… 题解列表 2022年01月04日 0 点赞 0 评论 237 浏览 评分:0.0
1503: 蓝桥杯算法提高VIP-前10名 摘要:读入、排序后输出。#include <bits/stdc++.h> using namespace std; bool cmp(int &a,int &b){ return a>b;…… 题解列表 2022年01月04日 0 点赞 0 评论 228 浏览 评分:0.0
1486: 蓝桥杯算法提高VIP-一元一次方程 摘要:无脑打印。#include <bits/stdc++.h> using namespace std; int main(){ double a,b; cin >> a >>…… 题解列表 2022年01月04日 0 点赞 0 评论 238 浏览 评分:0.0
2084: 蓝桥杯基础练习-特殊回文数 摘要:先求各位和是否与所求一致,再判断是否是回文数,而不是相反。#include <bits/stdc++.h> using namespace std; int f(int a){ in…… 题解列表 2022年01月04日 0 点赞 0 评论 354 浏览 评分:0.0
1470: 蓝桥杯基础练习VIP-时间转换 摘要:时分秒挨个对 60 取余就得到了。#include <bits/stdc++.h> using namespace std; int main(){ int n; cin …… 题解列表 2022年01月04日 0 点赞 0 评论 293 浏览 评分:0.0
二级C语言-自定义函数 路过了就看一眼吧 大哥们 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(int n){ int j; double t=1; for(j=1;j<=n;…… 题解列表 2022年01月04日 0 点赞 0 评论 279 浏览 评分:9.9
二级C语言-求偶数和 摘要:解题思路:1.先输入一个n值限制2、然后再输入数值注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0,x; scanf("%d",&n); for(i…… 题解列表 2022年01月04日 0 点赞 0 评论 880 浏览 评分:9.9
KMP字符串模式匹配算法实(Java代码) 摘要:解题思路: 写一个kmp算法的方法 多调用几遍方法就好了参考代码:import java.util.Scanner; public class KMP字符串模式匹配算法实现 { publ…… 题解列表 2022年01月04日 0 点赞 0 评论 379 浏览 评分:9.9
1733: 堆栈的使用-C语言 摘要:```c //堆栈的使用 #include #include typedef struct node { int data; struct node *next;…… 题解列表 2022年01月04日 0 点赞 0 评论 491 浏览 评分:0.0
1680: 数据结构-八进制数-C语言 摘要:```c #include #include #include typedef struct stack{ int data; struct stack *next;…… 题解列表 2022年01月04日 0 点赞 0 评论 415 浏览 评分:0.0