蓝桥杯算法提高VIP-盾神与砝码称重 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#define maxlen 28int n, m;int fm[maxlen]; int…… 题解列表 2023年06月19日 0 点赞 0 评论 626 浏览 评分:0.0
C++ string 蓝桥杯算法训练VIP-字符删除 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string s; char …… 题解列表 2023年06月20日 0 点赞 0 评论 308 浏览 评分:0.0
2861-验证子串 摘要:解题思路:实际上本题用到了数据结构的思想,采用最传统的暴力法,不断的比较注意事项:参考代码:int main(){ char s1[201]; char s2[201]; int len1…… 题解列表 2023年06月20日 0 点赞 1 评论 577 浏览 评分:0.0
[竞赛入门]简单的a+b 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a=0,b=0; while(~scanf("%d%d", &a, &b)) //下面有…… 题解列表 2023年06月20日 0 点赞 0 评论 398 浏览 评分:0.0
[编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("He…… 题解列表 2023年06月20日 0 点赞 0 评论 424 浏览 评分:0.0
2848-基因相关性 摘要:解题思路:注意事项:如果本题采用gets()的输入方法,那么会一直报错,不清楚为什么。scanf()就不会报错。参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2023年06月20日 0 点赞 0 评论 333 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h> int main() { char str[5000], str1[105][55]; …… 题解列表 2023年06月20日 0 点赞 0 评论 428 浏览 评分:6.0
题目 1378: C hicken and rabbit s题解 摘要:1.解题思路注意鸡的腿数和兔的腿数都是偶数,不可能共有奇数条腿,所以当m%2==1时,输出0 0.否则,最多只动物时,全都是鸡,输出m/2;最少只动物时,全都是兔,输出celi(m/4).2.参考代码…… 题解列表 2023年06月21日 0 点赞 0 评论 397 浏览 评分:9.9
2867-单词的长度 摘要:解题思路:注意事项:本题如果用C++语言会特别的方便,因为C++语言中有单词分隔函数。用C语言可能比较繁琐。参考代码:int main(){ char s[1001]; int len,i; …… 题解列表 2023年06月21日 0 点赞 0 评论 539 浏览 评分:9.9
2868-最长最短单词 摘要:解题思路:注意事项:请各位朋友帮忙指正,测试的时候只有91分。参考代码:struct Test{ char s[105]; int n; }; int main(){ struct T…… 题解列表 2023年06月21日 0 点赞 0 评论 520 浏览 评分:0.0