排序算法模板题 这次用的是y总给的快排模板 摘要:# 快排模板 ```c++ #include using namespace std; const int N = 1e5+10; int q[N]; int n,k; void q…… 题解列表 2023年08月07日 0 点赞 0 评论 222 浏览 评分:0.0
基础study,循环输入整数 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main(){ int a,sum=0,b; scanf("%d",&a); for (int i=0; i…… 题解列表 2023年08月07日 0 点赞 0 评论 110 浏览 评分:0.0
矩形滑雪场(深搜+记忆化搜索) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int r,c; int arr[101][101]; int f[101][1…… 题解列表 2023年08月07日 0 点赞 0 评论 132 浏览 评分:0.0
使用一个变量来寄存变化的自变量,另一个变量求和。指针本质,跟递归相似,不太熟练 摘要:解题思路:注意事项:参考代码:#include "stdio.h" int main() { int sum=2,k=2;//我发现不能用sum,k=2表示,查查,私信告诉我啊 …… 题解列表 2023年08月07日 0 点赞 0 评论 149 浏览 评分:0.0
主要找出公因数,2*3*7=42即可,整除为0输出 摘要:#include "stdio.h" int main() { for(int i=100;i<1000;i++){ if(i%42==0) …… 题解列表 2023年08月07日 0 点赞 0 评论 148 浏览 评分:0.0
字符串的修改1205 摘要:解题思路:公式或者动态规划注意事项:参考代码:一、套公式:最少操作数=长字符串长度-最大公共子串长度#include二、动态规划——WagnerFischer算法#include <stdio.h>#…… 题解列表 2023年08月08日 0 点赞 0 评论 155 浏览 评分:0.0
找最大数简单易懂c宏定义和函数两种 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define max(a,b,c) a>b?(a>c?a:c):(a<c?(b>c?b:c):b)int main(){ int…… 题解列表 2023年08月08日 0 点赞 0 评论 149 浏览 评分:0.0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s 摘要:### 这里必须要使用sc.nextLine(),因为字符串中可能包含有空格,导致不能满分 ``` import java.util.Scanner; public class Main {…… 题解列表 2023年08月08日 0 点赞 0 评论 124 浏览 评分:0.0
保留字母(C) 摘要:解题思路:方法一:删除非字母字符 怎么实现删除呢?将字符串存放在字符数组中,每个字符都有相应的占位,对字符串中每一个字符逐一进行判断,若是非字母字符就将它下一个字符来替换它。参考代码:#incl…… 题解列表 2023年08月09日 0 点赞 0 评论 179 浏览 评分:0.0
双目运算符使用 摘要:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int max; max = a>b?a:b…… 题解列表 2023年08月09日 0 点赞 0 评论 182 浏览 评分:0.0