蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:如果两个字符串的长度不相等,输出 "1"。如果两个字符串的长度相等,并且在区分大小写的情况下完全相等,输出 "2"。如果两个字符串的长度相等,但在不区分大小写的情况下相等,输出 "3"。如果…… 题解列表 2023年11月29日 0 点赞 0 评论 456 浏览 评分:0.0
c代码记录之石头剪子布 摘要: #include #include int cq(char str1[],char str2[]){ if((str1[0]=='R'&&st…… 题解列表 2023年11月29日 0 点赞 0 评论 410 浏览 评分:0.0
接水问题(他这里接水顺序是按序号定了的,没有用到贪心的思路) 摘要:解题思路:当水龙头数大于或等于学生数时,谁的接水量最高,谁就是所花的总时间,当水龙头数小于学生数时,那就要等前面某个人接完了,建一个数组a[n],表示n个人的接水量,用index表示没完成节水的人数,…… 题解列表 2023年11月29日 0 点赞 0 评论 524 浏览 评分:0.0
c语言(详细解法) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int findMaxSpan(char *S, char *S1, char *S2) { …… 题解列表 2023年11月29日 0 点赞 0 评论 400 浏览 评分:9.9
暴力搜索 dfs 摘要:解题思路:用1~9的排列的方法 ,在排列时进行判断是否可以 注意事项:参考代码:#include<bits/stdc++.h> using namespace std; class plane{ …… 题解列表 2023年11月29日 0 点赞 2 评论 3299 浏览 评分:9.1
java,贪心解法,O(nlogn)时间复杂度 摘要:解题思路: 首先,看到代价和最少,很容易想到贪心。也就是对代价数组进行排序,优先修改代价小的元素注意事项: 答案记得设置为long,第九个测试点int会越界参考代码: imp…… 题解列表 2023年11月29日 1 点赞 4 评论 1029 浏览 评分:9.9
奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n%2==0){ print…… 题解列表 2023年11月29日 0 点赞 0 评论 334 浏览 评分:0.0
最简单的代码Hello, World!的输出 摘要:谁不会谁是大傻子哈哈哈哈哈哈哈哈哈哈哈哈哈哈参考代码:#include<stdio.h> #include<stdlib.h> int main() { printf("Hello, …… 题解列表 2023年11月29日 0 点赞 0 评论 658 浏览 评分:2.0
输出第二个数字 哈哈哈哈简直不要太基础 摘要:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年11月29日 6 点赞 0 评论 979 浏览 评分:7.3
输入输出练习之格式控制 摘要:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年11月29日 3 点赞 0 评论 1286 浏览 评分:0.0