暴力搜索 dfs 摘要:解题思路:用1~9的排列的方法 ,在排列时进行判断是否可以 注意事项:参考代码:#include<bits/stdc++.h> using namespace std; class plane{ …… 题解列表 2023年11月29日 0 点赞 2 评论 3498 浏览 评分:9.1
c语言(详细解法) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int findMaxSpan(char *S, char *S1, char *S2) { …… 题解列表 2023年11月29日 0 点赞 0 评论 552 浏览 评分:9.9
接水问题(他这里接水顺序是按序号定了的,没有用到贪心的思路) 解题思路:当水龙头数大于或等于学生数时,谁的接水量最高,谁就是所花的总时间,当水龙头数小于学生数时,那就要等前面某个人接完了,建一个数组a[n],表示n个人的接水量,用index表示没完成节水的人数,index初始值为n,用count表示还未接上水的元素序号, 题解列表 2023年11月29日 0 点赞 0 评论 699 浏览 评分:0.0
c代码记录之石头剪子布 摘要: #include #include int cq(char str1[],char str2[]){ if((str1[0]=='R'&&st…… 题解列表 2023年11月29日 0 点赞 0 评论 557 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:如果两个字符串的长度不相等,输出 "1"。如果两个字符串的长度相等,并且在区分大小写的情况下完全相等,输出 "2"。如果两个字符串的长度相等,但在不区分大小写的情况下相等,输出 "3"。如果…… 题解列表 2023年11月29日 0 点赞 0 评论 629 浏览 评分:0.0
c代码记录之基因相关性(提出问题,用scanf能过,用gets过不了) 提出问题,用scanf能过,用gets过不了//用scanf#include#includeintmain(){charxl_a[501],xl_b[501];floatbz,bi,sum=0;intn,m,i;scanf("%f%s%s", 题解列表 2023年11月29日 0 点赞 0 评论 549 浏览 评分:0.0
短信计费(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b[10001]; int c=0,count=0; scanf("%d",&a)…… 题解列表 2023年11月28日 0 点赞 0 评论 722 浏览 评分:9.9
3000: 交换值 摘要:解题思路:cin输入cout调换个顺序 很简单注意事项:给个五星吧 求求了参考代码:#include <bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2023年11月28日 0 点赞 3 评论 477 浏览 评分:9.9
计算(a+b)*c的值(C++) 摘要:解题思路:用cin输入a,b,c 再用cout输出(a+b)*c学废了吗?注意事项:给孩子一个五星吧 求求了参考代码:#include <bits/stdc++.h>using namespace s…… 题解列表 2023年11月28日 0 点赞 0 评论 828 浏览 评分:9.9
蓝桥杯基础练习VIP-分解质因数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> // 计算质因数分解并输出 void primeFactors(int n) { int divisor = 2;…… 题解列表 2023年11月28日 0 点赞 0 评论 834 浏览 评分:9.9