排序问题,江小白yyds 摘要:解题思路:用c++中的sort,直接排序注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int fun(int a,int b){ retur…… 题解列表 2021年12月06日 0 点赞 0 评论 1125 浏览 评分:8.0
蓝桥杯2013年第四届真题-剪格子 python实现 75%错误的解决方案。 m,n=map(int,input().strip().split())l=[[]for_inrange(n)]foriinrange(n):l[i]=list(map(int,input().strip().split()))stack=[]q_num=[]count=0total=0foriinr 题解列表 2021年12月06日 0 点赞 0 评论 833 浏览 评分:0.0
简单(无数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c; scanf("%d",&a); while(a--){ …… 题解列表 2021年12月06日 0 点赞 0 评论 542 浏览 评分:0.0
发现这道题没什么题解来贡献一个思路 摘要:解题思路:注意事项:由于四个电子数字打在同一行,所以不能一个一个输出,必须想办法同时处理四个数字;参考代码:#include<stdio.h>void done1(int x){ switch(x) …… 题解列表 2021年12月06日 0 点赞 0 评论 678 浏览 评分:2.0
1433: 蓝桥杯2013年第四届真题-危险系数 n,m=map(int,input().strip().split())l=[[0]*nfor_inrange(n)]foriinrange(m):x,y=map(int,input().strip().split())l[x-1][y-1]=1l[y-1][x-1]=1p, 题解列表 2021年12月06日 0 点赞 0 评论 860 浏览 评分: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 评论 661 浏览 评分: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 评论 837 浏览 评分: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 评论 835 浏览 评分: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 评论 490 浏览 评分: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 评论 1374 浏览 评分:9.9