vector简单明了,一看就懂 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,k,j; vector<i…… 题解列表 2025年03月01日 1 点赞 0 评论 251 浏览 评分:10.0
1738: 排序 (sort) 摘要:解题思路:使用sort()排序,注意使用头文件<bits/stdc++.h>或使用#include<algorithm>头文件sort(begin, end, cmp),其中b…… 题解列表 2025年03月01日 2 点赞 0 评论 510 浏览 评分:0.0
蓝桥杯算法提高VIP-逆序排列(c语言) 摘要:#include<stdio.h>#include<string.h>#include<math.h>int&n…… 题解列表 2025年03月01日 0 点赞 0 评论 179 浏览 评分:0.0
猴子吃桃。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,n;&nb…… 题解列表 2025年03月01日 0 点赞 0 评论 277 浏览 评分:0.0
详细解释我的代码这么写的原因 摘要:解题思路: 定义两个字符串数组a1\a2 和两个整数数组b1\b2 还有存放他们的和的整数数组sum , 并且将他们全部初始化为0, 将a1\a2里面的每一个数字 按照分位从大到小 分开存…… 题解列表 2024年11月23日 1 点赞 0 评论 441 浏览 评分:0.0
C语言:三个数组+两个函数 解决问题【豆包改过的代码】 摘要:解题思路:【原代码是我写的,现在这个代码是豆包改的,和我原本想法细节上有出入,我就不解释了,直接分享代码吧】注意事项:参考代码:#include <stdio.h>#include <…… 题解列表 2025年03月01日 0 点赞 0 评论 371 浏览 评分:0.0
正则表达式解决字符串空格输入问题 摘要:解题思路:由于字符串中单词以空格隔开,我们可以用正则表达式配合scanf来解决空格的输入问题,比如scanf("%[^\n]",st…… 题解列表 2025年03月01日 1 点赞 0 评论 169 浏览 评分:10.0
状态转移方程和埃拉托斯特尼筛法 摘要:解题思路:对于动态规划部分,对于每个x,我们需要检查是否存在一个质数p,使得x-p后的状态是必败态(即dp[x-p]为false)。如果有这样的p,那么当前玩家可以赢,否则不能。需要注意的点:1. 质…… 题解列表 2025年03月02日 3 点赞 1 评论 715 浏览 评分:10.0
C++简单解法 摘要:#includeusing namespace std;int main(void){ double a; cin>>a; printf("%f\n",a);//这里我…… 题解列表 2025年03月02日 1 点赞 0 评论 150 浏览 评分:10.0
C++简单解法 摘要:#includeusing namespace std;int main(void){ char a; cin>>a; cout…… 题解列表 2025年03月02日 0 点赞 0 评论 331 浏览 评分:10.0