题解1032(c语言代码) 极短代码,适合小白(无gets,puts等冷门函数) 摘要:重点: 1:简单的题,不要想得那么难! 2:连接字符串无需strcpy! 无需strcpy! 无需strcpy! 3:字符串输入输出用%s!代码: #include<stdio…… 文章列表 2019年03月28日 1 点赞 5 评论 329 浏览 评分:9.9
删除字符串中指定的字符 摘要:要求:给定字符串 a="hello" 删除a中的字符'e'代码如下:#include<stdio.h> int main(void) { int i ,j; char a[] =…… 文章列表 2019年03月28日 0 点赞 0 评论 708 浏览 评分:9.9
删除字符串a中指定的字符集 摘要:字符串a[ ] = "hello";字符串b[ ] = "elo";删除字符串a中在字符串b中出现的字符实现代码:int main(void) { int i, j,k; char a[] = "…… 文章列表 2019年03月28日 0 点赞 0 评论 669 浏览 评分:0.0
明天蓝桥杯省赛了,各位加油! 摘要:各位加油!即使写不出来也暴力一下,暴力总有点分的,有的时候暴力还可以莫名其妙的通过。注意边界数据,比如说最大值,0值,最小值,以及一些奇怪的数据,注意在草稿纸上面多推理几遍数据注意一些化简得转换问题,…… 文章列表 2019年03月23日 1 点赞 1 评论 325 浏览 评分:0.0
矩阵问题----求解为什么运行错误 摘要://代码如下#include <stdio.h>#include <stdlib.h>int a[8][8];int add[8];//用来存放每个矩阵各列和int min=0;int tag=0;i…… 文章列表 2019年03月20日 0 点赞 0 评论 778 浏览 评分:0.0
求“完数” 摘要:一个数如果恰好等于不包含它本身所有因子之和,这个数就称为"完数"。 例如,6的因子为1、2、3,而6=1+2+3,因此6是"完数"。 #include<iostream>#include<cstdio…… 文章列表 2019年03月18日 0 点赞 0 评论 599 浏览 评分:0.0
求最大公约数和最小公倍数 摘要:#include<iostream>#include<math.h>using namespace std;int mods(int a,int b){ while(b!=0){ int te…… 文章列表 2019年03月17日 5 点赞 0 评论 957 浏览 评分:9.9
树状数组+差分(树状数组区间更新与查询)模板,自用 摘要:自用模板,原理网上一大堆,不过建议自己跟着题目敲几遍,有部分所谓题解代码是错的。<树状数组区间更新与查询>#include<bits/stdc++.h> using namespace std; …… 文章列表 2019年03月16日 2 点赞 0 评论 846 浏览 评分:0.0
练习过程中的心得 摘要:1.在类型转换这个陷阱上,一定要注意隐藏的自动转换,很容易出错,如 float = int 这类型,最后printf的时候,会为0.0000…… 文章列表 2019年03月14日 1 点赞 0 评论 522 浏览 评分:0.0
差分数组,树状数组,自用模板 摘要:放点自用模板...自用的<差分数组>#include<bits/stdc++.h> using namespace std; const int maxn=100005; int orign[m…… 文章列表 2019年03月14日 3 点赞 0 评论 629 浏览 评分:0.0