Hifipsysta-2020-快速排序练习(C++代码) ```cpp#includeusingnamespacestd;constintMXN=1e5+10;intarr[MXN];intPartition(intleft,intright){inttemp=arr[left];while(left 题解列表 2022年03月08日 0 点赞 0 评论 648 浏览 评分:0.0
知道组数求a+b的和 摘要:解题思路:用 n 来跳出循环即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; scanf("%d",&n); while(~sc…… 题解列表 2022年03月08日 0 点赞 0 评论 633 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接--字符串连接函数(strcat) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void strCat(char str1[],char str2[]){ printf("%…… 题解列表 2022年03月08日 0 点赞 0 评论 622 浏览 评分:0.0
题解 1206: 字符串问题 摘要:解题思路:1.首先,定义一个字符串2.运用gets函数输入3.获得字符串的长度4.字符串的长度与数组的实际为序大15.从后向前输出字符串注意事项:参考代码:#include<stdio.h> #in…… 题解列表 2022年03月08日 0 点赞 0 评论 680 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接--神奇的是这种方法内存还小 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void strCat(char str1[],char str2[]){ for(int i…… 题解列表 2022年03月08日 0 点赞 0 评论 511 浏览 评分:0.0
编写题解 1033: [编程入门]自定义函数之字符提取--判断是否在另一个字符数组中存在 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void strCat(char str1[],char str2[]){ for(int i…… 题解列表 2022年03月08日 0 点赞 0 评论 506 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[5]; gets(a); for(int i=0;i<4;i++){ printf("%c…… 题解列表 2022年03月08日 0 点赞 0 评论 519 浏览 评分:0.0
编写题解 1035: [编程入门]自定义函数之字符类型统计--ctype.h库 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>#include <ctype.h>//字符串函数包含的头文件int main(){ int…… 题解列表 2022年03月08日 0 点赞 0 评论 656 浏览 评分:0.0
编写题解 1036: [编程入门]带参数宏定义练习--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define change(a,b) t=a,a=b,b=tint main(){int a,b,t;scanf("%d%d",&a,…… 题解列表 2022年03月08日 0 点赞 0 评论 632 浏览 评分:0.0
蓝桥杯算法提高VIP-任意年月日历输出C++ ```cpp#includeusingnamespacestd;inta[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};boolrun(intx){if(x%4==0&&x%100!=0||x%400==0){returntrue;}else{returnfa 题解列表 2022年03月08日 0 点赞 0 评论 822 浏览 评分:0.0