蓝桥杯2020年第十一届省赛真题-成绩分析 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[10000];int main(){ int n,i,max,min; scanf("%d",&n); …… 题解列表 2023年01月15日 0 点赞 0 评论 576 浏览 评分:0.0
用stl构建链表。很快就能解决 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;list <int> node;int main(){ int n;cin >> n…… 题解列表 2023年01月15日 0 点赞 0 评论 315 浏览 评分:0.0
排队买票(两种方法) 摘要:解题思路:思路一:实打实的对所有可能的排列做判断。思路二:不考虑每位小孩的差异性,仅找出满足条件的序列,然后根据1元小孩所占的坑位和2元小孩所占的坑位,让他们在自己的坑位自由排列,最终将三个数相乘即可…… 题解列表 2023年01月15日 0 点赞 0 评论 621 浏览 评分:9.9
简单易懂矩阵对角线求和 摘要:解题思路:数组,循环,条件注意事项:输入数组时格式为a[i][j],a或a[3][3]都是错的参考代码:#include<stdio.h>int main(){ int i,j,a[3][3]; in…… 题解列表 2023年01月15日 0 点赞 0 评论 307 浏览 评分:0.0
编写题解 1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool isprime(int i) { if (i==1||i==0) return fa…… 题解列表 2023年01月15日 0 点赞 0 评论 301 浏览 评分:0.0
动态规划题目 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N = 1e2 + 5;int dp[N][N],a[N][N]…… 题解列表 2023年01月15日 0 点赞 0 评论 464 浏览 评分:9.9
编写题解 2924: 明明的随机数c语言 摘要:解题思路:编写删除重复数字的函数+排序的函数注意事项:dele函数中,要有j--!因为第一个移动的数字还没有与a[i]比较,j--之后a[i]可以与第一个移动的数字比较。如果没有j--,只适用于有两个…… 题解列表 2023年01月16日 0 点赞 0 评论 418 浏览 评分:9.9
编写删除相同的单词函数+冒泡法排序函数 摘要:解题思路:先删除相同字母,再排序,最后进行输出注意事项:参考代码:#include<stdio.h>#include<string.h>//删除重复的单词int dele(char str[][55…… 题解列表 2023年01月16日 0 点赞 0 评论 409 浏览 评分:0.0
排队买票1月16 摘要:```cpp #include #include using namespace std; int main() { int M, N, K; int a[10] = { 0 };int…… 题解列表 2023年01月16日 0 点赞 0 评论 320 浏览 评分:9.9