Hifipsysta-1738-归并排序(C++代码)归并排序法 摘要:```cpp #include using namespace std; const int MXN=1e5+10; int arr[MXN]; int tmp[MXN]; void…… 题解列表 2022年03月08日 0 点赞 0 评论 469 浏览 评分:0.0
简单想法 简单思路 简单代码 java实现 摘要:解题思路:将每一行接收位Sring 然后通过split分割成每位字符串数字用String数组保存起来最后用一个for循环通过parseInt将每一位转成int后累加即可注意事项:参考代码:class…… 题解列表 2022年03月08日 0 点赞 0 评论 487 浏览 评分:0.0
带表格格式的乘法表处理 摘要:解题思路:如何实现顶部和左侧的部分,控制中间字符之间的间隔距离。1、标题部分:虚线可以照抄,但是注意第一行数字第一位是6个空,其余均为4个,那么特殊对待第一个字符。其他用占位符占4格。2、左侧部分,外…… 题解列表 2022年03月08日 0 点赞 0 评论 434 浏览 评分:0.0
2048: 多重背包 摘要:将n个物品注意拆分转化为01背包问题#include<iostream>using namespace std;int dp[10000];int w[105],v[105],c[1050];int …… 题解列表 2022年03月08日 0 点赞 0 评论 418 浏览 评分:0.0
Hifipsysta-1716-数据结构-快速排序(C++代码) 摘要:```cpp #include using namespace std; const int MXN=1e5+10; int arr[MXN]; int Partition(int…… 题解列表 2022年03月08日 0 点赞 0 评论 453 浏览 评分:0.0
Hifipsysta-2020-快速排序练习(C++代码) 摘要:```cpp #include using namespace std; const int MXN=1e5+10; int arr[MXN]; int Partition(int…… 题解列表 2022年03月08日 0 点赞 0 评论 428 浏览 评分:0.0
知道组数求a+b的和 摘要:解题思路:用 n 来跳出循环即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; scanf("%d",&n); while(~sc…… 题解列表 2022年03月08日 0 点赞 0 评论 434 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接--字符串连接函数(strcat) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void strCat(char str1[],char str2[]){ printf("%…… 题解列表 2022年03月08日 0 点赞 0 评论 436 浏览 评分:0.0
题解 1206: 字符串问题 摘要:解题思路:1.首先,定义一个字符串2.运用gets函数输入3.获得字符串的长度4.字符串的长度与数组的实际为序大15.从后向前输出字符串注意事项:参考代码:#include<stdio.h> #in…… 题解列表 2022年03月08日 0 点赞 0 评论 489 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接--神奇的是这种方法内存还小 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void strCat(char str1[],char str2[]){ for(int i…… 题解列表 2022年03月08日 0 点赞 0 评论 333 浏览 评分:0.0