排序问题,江小白yyds 摘要:解题思路:用c++中的sort,直接排序注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int fun(int a,int b){ retur…… 题解列表 2021年12月06日 0 点赞 0 评论 634 浏览 评分:8.0
蓝桥杯2013年第四届真题-剪格子 python实现 75%错误的解决方案。 摘要: m ,n = map(int,input().strip().split()) l = [[] for _ in range(n)] for i in range(n): …… 题解列表 2021年12月06日 0 点赞 0 评论 410 浏览 评分:0.0
简单(无数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c; scanf("%d",&a); while(a--){ …… 题解列表 2021年12月06日 0 点赞 0 评论 218 浏览 评分:0.0
发现这道题没什么题解来贡献一个思路 摘要:解题思路:注意事项:由于四个电子数字打在同一行,所以不能一个一个输出,必须想办法同时处理四个数字;参考代码:#include<stdio.h>void done1(int x){ switch(x) …… 题解列表 2021年12月06日 0 点赞 0 评论 331 浏览 评分:2.0
1433: 蓝桥杯2013年第四届真题-危险系数 摘要: n, m = map(int, input().strip().split()) l = [[0]*n for _ in range(n)] for i in range(…… 题解列表 2021年12月06日 0 点赞 0 评论 515 浏览 评分:0.0
计算1~N之间所有奇数之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); for(int i=1;i<=n;i++) { …… 题解列表 2021年12月06日 0 点赞 0 评论 337 浏览 评分:0.0
简单A+B,时间相加,C实现 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); while (n--)//控制多行输出 { int a[6];…… 题解列表 2021年12月06日 0 点赞 0 评论 496 浏览 评分:2.0
1686: 数据结构-定位子串 普通的BF算法 摘要:```c #include #include #define max 100 int BF(char s[], char sub[], int pos); //BF算法 改进->kmp算…… 题解列表 2021年12月06日 0 点赞 0 评论 467 浏览 评分:9.9
蓝桥杯算法训练VIP-连续正整数的和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=0; for(i=1;i<n;i++){…… 题解列表 2021年12月06日 0 点赞 0 评论 237 浏览 评分:0.0
题解 1142: C语言训练-立方和不等式 摘要:解题思路:试求满足下述立方和不等式的m的整数解。 1^3+2^3+...+m^3〈=n 本题算法如下: 对指定的n,设置求和循环,从i=1开始,i递增1取值,把i3(或i*i*i)累加到s,直至s>=…… 题解列表 2021年12月06日 0 点赞 0 评论 1051 浏览 评分:9.9