多输入输出练习1(模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&…… 题解列表 2025年02月03日 0 点赞 0 评论 130 浏览 评分:0.0
多输入输出练习2(pai = 3.1415) 摘要:解题思路:模拟注意事项:pai = 3.1415参考代码:#include<iostream>#include<iomanip>usingnamespace…… 题解列表 2025年02月03日 0 点赞 0 评论 175 浏览 评分:0.0
大小写转换 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>#include<iomanip>usingnamespacestd;…… 题解列表 2025年02月03日 0 点赞 0 评论 307 浏览 评分:0.0
蓝桥杯算法训练VIP-进制转换2 摘要:解题思路:考虑直接转换,直接用祖传的除kk取余倒取法即可。但是,我们发现余数r<0r<0时会出错。我们都知道一个余数定理:a=qk+ra=q…… 题解列表 2025年02月03日 0 点赞 0 评论 131 浏览 评分:0.0
字符串的修改(DP 编辑距离) 摘要:解题思路: DP(编辑距离)注意事项:参考代码:#include<iostream>usingnamespacestd;constint&nbs…… 题解列表 2025年02月03日 0 点赞 0 评论 201 浏览 评分:0.0
字符串问题(极简) 摘要:解题思路:极简注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ string…… 题解列表 2025年02月03日 0 点赞 0 评论 297 浏览 评分:0.0
快速排序解决 摘要:解题思路:多组测试数据可以利用输入的返回值体现,当有输入n的操作的时候才进行对下一行n个数据进行排序注意事项:快排别写错,注意换行参考代码:#include<iostream>#inclu…… 题解列表 2025年02月04日 0 点赞 0 评论 337 浏览 评分:0.0
通过差分数组对数组的某个区间进行统一操作 降低时间复杂度 摘要:题目:不断对一个数组arr=l{}的区间进行增加 最后横向打印arr的所有元素 注意数组顺序是基于1-based解题思路:差分数列 在一个数组里 我们需要对一些区间进行批量操作 通过for循环实现…… 题解列表 2025年02月04日 0 点赞 0 评论 153 浏览 评分:0.0
存入数组后冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; int i,j,t; for(i=0;i<3;i++) { …… 题解列表 2025年02月05日 1 点赞 0 评论 682 浏览 评分:0.0
基础C++解法 摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){&…… 题解列表 2025年02月05日 0 点赞 0 评论 206 浏览 评分:0.0