(符合题意)字符串的输入输出处理-题解(C语言代码) 摘要:解题思路:1、将输入的字符串分为两类:(1)N行以内的,原样输出,空格不换行,回车分隔;(2)N行以后,空格与回车成为分隔符,换行输出; 2、定义两个二维字符数组,使用ge…… 题解列表 2020年10月12日 0 点赞 0 评论 1035 浏览 评分:0.0
DNA-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; int a[15]; int b[15]; int i=0; scanf("%d",&N); d…… 题解列表 2020年10月12日 0 点赞 0 评论 634 浏览 评分:0.0
[偶数求和]-题解(C语言代码) 摘要:```c #include void main() { int n, m; while (scanf("%d%d",&n,&m)!=EOF) { int sum = 0; …… 题解列表 2020年10月12日 0 点赞 0 评论 676 浏览 评分:0.0
蓝桥杯算法训练VIP-字符串编辑-题解(C++代码)函数加C++的string的函数 摘要:```cpp #include #include #include using namespace std; void Del(string &str,char b) { strin…… 题解列表 2020年10月12日 0 点赞 0 评论 994 浏览 评分:0.0
二级C语言-计负均正-题解(C语言代码) 摘要:解题思路:在输入数值时由两个变量分别统计累加正数、负数。注意事项:注意0既不是正数也不是负数。参考代码:#include<stdio.h>int main(){ int a[20],count1…… 题解列表 2020年10月12日 0 点赞 0 评论 842 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:参考了其他人的,加了注释,可读性更高 ```c #include struct data{ int year; int month; int day; }; …… 题解列表 2020年10月12日 0 点赞 0 评论 521 浏览 评分:0.0
[编程入门]猴子吃桃的问题-题解(C语言代码) 摘要:# MarkDown编辑器基本使用说明 这个问题的本质是数列问题,找到数列的规律,然后采用循环就行。 #include int main() { int n,sum,i,t=1; …… 题解列表 2020年10月12日 0 点赞 0 评论 627 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数-题解 摘要:只是个小白,只会用hash表的方法判断是否有重复数字,还望各位大神指导 #include using namespace std; bool fun(int i,int j,i…… 题解列表 2020年10月12日 0 点赞 0 评论 697 浏览 评分:0.0
蓝桥杯算法提高VIP-数字黑洞-题解(C++代码) 摘要: #include #include #include using namespace std; int main() { …… 题解列表 2020年10月12日 0 点赞 0 评论 626 浏览 评分:0.0
[编程入门]结构体之成绩记录-题解(C语言代码) 摘要:思路其实很简单,不需要用到指针,完全用基本的结构就能完成 ```c #include struct student { char num[20]; //注意一下这里学号的类型有…… 题解列表 2020年10月12日 0 点赞 0 评论 683 浏览 评分:0.0